Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo", uses=false) Using package OpenHydraulics with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.GenericRestrictionTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.GenericRestrictionTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005303/0.005303, allocations: 104.6 kB / 15.74 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 189.1 kB / 16.67 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.272/1.272, allocations: 205.1 MB / 222.6 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05288/0.05288, allocations: 11.84 MB / 281.7 MB, free: 9.336 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenHydraulics requested package Modelica of version 3.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 71.91 kB / 391.8 MB, free: 3.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2559, allocations: 49.23 MB / 441.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.GenericRestrictionTest): time 0.00444/0.2604, allocations: 2.897 MB / 444 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003647/0.264, allocations: 2.011 MB / 446 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003084/0.2644, allocations: 6.344 kB / 446 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003516/0.2648, allocations: 58.17 kB / 446 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006321/0.2654, allocations: 151.4 kB / 446.2 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001296/0.2667, allocations: 380.8 kB / 446.6 MB, free: 380 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004621/0.2672, allocations: 376.7 kB / 446.9 MB, free: 184 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.2674, allocations: 99.52 kB / 447 MB, free: 128 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.2676, allocations: 130.2 kB / 447.1 MB, free: 68 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000231/0.2679, allocations: 152.4 kB / 447.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.201e-05/0.2679, allocations: 24.06 kB / 447.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005282/0.2684, allocations: 244.2 kB / 447.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.803e-05/0.2685, allocations: 63.02 kB / 447.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001715/0.2687, allocations: 152.3 kB / 447.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007604/0.2695, allocations: 452.3 kB / 448.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.2695, allocations: 1.781 kB / 448.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2695, allocations: 0 / 448.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.2695, allocations: 4 kB / 448.2 MB, free: 15.62 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001044/0.2706, allocations: 0.5936 MB / 448.8 MB, free: 15.1 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.2706, allocations: 12.52 kB / 448.8 MB, free: 15.1 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.129e-05/0.2707, allocations: 59.48 kB / 448.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.2709, allocations: 35.28 kB / 448.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003426/0.2712, allocations: 260.6 kB / 449.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.2712, allocations: 27.47 kB / 449.2 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.91e-05/0.2713, allocations: 30.17 kB / 449.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004865/0.2718, allocations: 273.2 kB / 449.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.2718, allocations: 1.281 kB / 449.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.641e-05/0.2718, allocations: 9.5 kB / 449.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.2719, allocations: 6 kB / 449.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004355/0.2723, allocations: 218.2 kB / 449.7 MB, free: 14.43 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001987/0.2743, allocations: 1.448 MB / 451.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002791/0.2746, allocations: 152.2 kB / 451.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.2747, allocations: 73.7 kB / 451.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001821/0.2749, allocations: 168.8 kB / 451.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.275, allocations: 34.56 kB / 451.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.874e-06/0.275, allocations: 0 / 451.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001971/0.2769, allocations: 0.7203 MB / 452.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.277, allocations: 58.16 kB / 452.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003043/0.2773, allocations: 274.4 kB / 452.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.2774, allocations: 31.17 kB / 452.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.2775, allocations: 156.9 kB / 452.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.686e-05/0.2776, allocations: 74.73 kB / 452.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.98e-05/0.2777, allocations: 48.97 kB / 452.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2778, allocations: 336.4 kB / 453.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.278, allocations: 83.75 kB / 453.4 MB, free: 11.22 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.2782, allocations: 128.2 kB / 453.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003771/0.2786, allocations: 206.1 kB / 453.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2786, allocations: 3.938 kB / 453.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005185/0.2791, allocations: 260.3 kB / 453.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.2792, allocations: 9.5 kB / 453.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.2792, allocations: 5.375 kB / 453.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.2792, allocations: 4.125 kB / 454 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.2795, allocations: 72.14 kB / 454 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.2795, allocations: 6.688 kB / 454 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.2797, allocations: 9.484 kB / 454 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.45e-05/0.2797, allocations: 14.81 kB / 454.1 MB, free: 10.79 MB / 334.1 MB Warning: Assuming fixed start value for the following 1 variables: idealPump.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of rotation of pump" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002152/0.28, allocations: 152.8 kB / 454.2 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.616e-05/0.28, allocations: 24.09 kB / 454.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00057/0.2806, allocations: 233.4 kB / 454.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.2806, allocations: 2.375 kB / 454.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.2806, allocations: 7.922 kB / 454.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.2806, allocations: 1.281 kB / 454.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.2817, allocations: 0.6367 MB / 455.1 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.2817, allocations: 1.188 kB / 455.1 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002745/0.282, allocations: 58.14 kB / 455.2 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.282, allocations: 1.172 kB / 455.2 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.386e-05/0.282, allocations: 10.08 kB / 455.2 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.282, allocations: 2.094 kB / 455.2 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.2821, allocations: 0 / 455.2 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006839/0.2827, allocations: 404.2 kB / 455.6 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.2829, allocations: 122.8 kB / 455.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.735e-05/0.2829, allocations: 1.25 kB / 455.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001589/0.2831, allocations: 9.562 kB / 455.7 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.276e-05/0.2832, allocations: 22.78 kB / 455.7 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.2832, allocations: 6.219 kB / 455.7 MB, free: 9.496 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002177/0.2834, allocations: 197.2 kB / 455.9 MB, free: 9.363 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2834, allocations: 1.344 kB / 455.9 MB, free: 9.363 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005411/0.284, allocations: 110.6 kB / 456 MB, free: 9.34 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (idealPump.phi,circuitTank.volumeOpen.m) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001209/0.2852, allocations: 1.011 MB / 457 MB, free: 8.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004824/0.2857, allocations: 192.6 kB / 457.2 MB, free: 8.418 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2857, allocations: 4.125 kB / 457.2 MB, free: 8.414 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001782/0.2859, allocations: 85.34 kB / 457.3 MB, free: 8.383 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004824/0.2864, allocations: 75.16 kB / 457.4 MB, free: 8.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003847/0.2902, allocations: 2.873 MB / 460.3 MB, free: 6.172 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.2906, allocations: 0.7586 MB / 461 MB, free: 5.441 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001835/0.2908, allocations: 45.36 kB / 461.1 MB, free: 5.418 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001536/0.291, allocations: 89.41 kB / 461.2 MB, free: 5.348 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.291, allocations: 0 / 461.2 MB, free: 5.348 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0284/0.3194, allocations: 7.894 MB / 469 MB, free: 14.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.06/9.379, allocations: 7.156 kB / 469.1 MB, free: 14.64 MB / 350.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTest_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.pipe 2>&1)