Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.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.DirectionalValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.DirectionalValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest",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.001059/0.001059, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 194.9 kB / 16.53 MB, free: 6.664 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.23/1.23, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05306/0.05306, allocations: 11.84 MB / 281.6 MB, free: 9.422 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.001494/0.001494, allocations: 75.42 kB / 341.9 MB, free: 21.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06839/0.06989, allocations: 49.22 MB / 391.2 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.007049/0.07698, allocations: 6.097 MB / 397.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004894/0.08189, allocations: 3.269 MB / 400.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006261/0.08254, allocations: 15.94 kB / 400.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000705/0.08329, allocations: 286 kB / 400.8 MB, free: 10.9 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.00133/0.08463, allocations: 0.5977 MB / 401.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001663/0.0863, allocations: 0.8293 MB / 402.2 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001812/0.08813, allocations: 1.841 MB / 404.1 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007017/0.08884, allocations: 0.5544 MB / 404.6 MB, free: 7.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008146/0.08966, allocations: 0.6382 MB / 405.3 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009455/0.09062, allocations: 0.7352 MB / 406 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000257/0.09089, allocations: 124 kB / 406.1 MB, free: 5.547 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007801/0.09167, allocations: 399.8 kB / 406.5 MB, free: 5.156 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003344/0.09202, allocations: 350.8 kB / 406.9 MB, free: 4.812 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008641/0.09289, allocations: 0.7308 MB / 407.6 MB, free: 4.078 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001881/0.09478, allocations: 1.959 MB / 409.6 MB, free: 2.113 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.0948, allocations: 0 / 409.6 MB, free: 2.113 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.09481, allocations: 3.938 kB / 409.6 MB, free: 2.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.369e-05/0.09486, allocations: 4 kB / 409.6 MB, free: 2.105 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 241 * Number of variables: 241 Notification: Performance of Generate backend data structure: time 0.002818/0.09768, allocations: 1.6 MB / 411.2 MB, free: 460 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.09772, allocations: 11.89 kB / 411.2 MB, free: 448 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000179/0.09791, allocations: 152.2 kB / 411.3 MB, free: 288 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002984/0.09821, allocations: 159.1 kB / 411.5 MB, free: 128 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001059/0.09928, allocations: 0.8227 MB / 412.3 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.198e-05/0.09935, allocations: 74 kB / 412.4 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.09949, allocations: 96 kB / 412.5 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00172/0.1012, allocations: 1.11 MB / 413.6 MB, free: 13.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.1013, allocations: 4 kB / 413.6 MB, free: 13.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-05/0.1014, allocations: 44 kB / 413.6 MB, free: 13.92 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/0.1014, allocations: 20 kB / 413.6 MB, free: 13.9 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001693/0.1031, allocations: 1.015 MB / 414.7 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006147/0.1092, allocations: 6.023 MB / 420.7 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001171/0.1104, allocations: 0.7382 MB / 421.4 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006896/0.1111, allocations: 390.5 kB / 421.8 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002283/0.1114, allocations: 202.8 kB / 422 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.1114, allocations: 35.22 kB / 422 MB, free: 4.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 2.024e-06/0.1114, allocations: 4 kB / 422 MB, free: 4.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.004503/0.1159, allocations: 2.269 MB / 424.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.116, allocations: 64 kB / 424.4 MB, free: 2.344 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/0.1172, allocations: 1.062 MB / 425.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.96e-05/0.1173, allocations: 41.7 kB / 425.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004016/0.1177, allocations: 0.5348 MB / 426 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.1179, allocations: 264.1 kB / 426.3 MB, free: 420 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/0.1181, allocations: 166.5 kB / 426.4 MB, free: 248 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.1245/0.2426, allocations: 341.9 kB / 426.8 MB, free: 40.29 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008459/0.2435, allocations: 342.9 kB / 427.1 MB, free: 40.28 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007246/0.2442, allocations: 0.4891 MB / 427.6 MB, free: 40.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005723/0.25, allocations: 1.812 MB / 429.4 MB, free: 39.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.371e-06/0.25, allocations: 1.312 kB / 429.4 MB, free: 39.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001774/0.2518, allocations: 1.018 MB / 430.4 MB, free: 39.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.2518, allocations: 8.344 kB / 430.4 MB, free: 39.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.2518, allocations: 9.219 kB / 430.4 MB, free: 39.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.619e-05/0.2519, allocations: 9.281 kB / 430.4 MB, free: 39.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000896/0.2528, allocations: 224.3 kB / 430.7 MB, free: 39.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.177e-05/0.2528, allocations: 15.69 kB / 430.7 MB, free: 39.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006043/0.2534, allocations: 36.55 kB / 430.7 MB, free: 39.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.709e-05/0.2535, allocations: 42.75 kB / 430.8 MB, free: 39.34 MB / 318.1 MB Warning: Assuming fixed start value for the following 3 variables: idealPump.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of rotation of pump" type: Real valve4_3pos.j2.volumeClosed.port[2].p:VARIABLE(flow=false min = 0.0 start = valve4_3pos.P2A.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [3] valve4_3pos.j3.volumeClosed.port[2].p:VARIABLE(flow=false min = 0.0 start = valve4_3pos.P2B.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 (valve4_3pos.A2T.data.zetaLaminarKnown,valve4_3pos.P2B.data.zetaLaminarKnown,valve4_3pos.B2T.data.zetaLaminarKnown,valve4_3pos.P2A.data.zetaLaminarKnown,restriction.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 108 * 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.0005351/0.254, allocations: 362.3 kB / 431.1 MB, free: 39.1 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001908/0.2542, allocations: 111.2 kB / 431.2 MB, free: 39.1 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00169/0.2559, allocations: 0.943 MB / 432.2 MB, free: 38.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.256, allocations: 8.25 kB / 432.2 MB, free: 38.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.256, allocations: 9.312 kB / 432.2 MB, free: 38.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.256, allocations: 4.359 kB / 432.2 MB, free: 38.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00321/0.2592, allocations: 2.318 MB / 434.5 MB, free: 37.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.2592, allocations: 1.938 kB / 434.5 MB, free: 37.47 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007964/0.26, allocations: 188.7 kB / 434.7 MB, free: 37.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.26, allocations: 9.625 kB / 434.7 MB, free: 37.46 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.553e-05/0.2601, allocations: 35.03 kB / 434.7 MB, free: 37.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.702e-06/0.2601, allocations: 5.406 kB / 434.7 MB, free: 37.44 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.2601, allocations: 6 kB / 434.7 MB, free: 37.44 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.262, allocations: 1.368 MB / 436.1 MB, free: 36.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003158/0.2623, allocations: 277.3 kB / 436.4 MB, free: 36.6 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.2625, allocations: 20.75 kB / 436.4 MB, free: 36.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004413/0.2629, allocations: 22.44 kB / 436.4 MB, free: 36.58 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.2631, allocations: 59 kB / 436.5 MB, free: 36.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.039e-05/0.2631, allocations: 33.08 kB / 436.5 MB, free: 36.56 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009469/0.2641, allocations: 0.7368 MB / 437.2 MB, free: 36.25 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2641, allocations: 0 / 437.2 MB, free: 36.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008345/0.2649, allocations: 302.6 kB / 437.5 MB, free: 36.23 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (idealPump.phi,circuitTank.volumeOpen.m,valve4_3pos.j2.volumeClosed.port[2].p,valve4_3pos.j3.volumeClosed.port[2].p,valve4_3pos.dynamicResponse.y,valve4_3pos.dynamicResponse.yd) * 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 (86): * Single equations (assignments): 86 * 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.002875/0.2678, allocations: 2.272 MB / 439.8 MB, free: 34.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.2695, allocations: 0.8762 MB / 440.7 MB, free: 34.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2695, allocations: 0 / 440.7 MB, free: 34.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005339/0.2701, allocations: 401.1 kB / 441.1 MB, free: 34.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.2713, allocations: 360.4 kB / 441.4 MB, free: 34.3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.2813, allocations: 9.851 MB / 451.3 MB, free: 27.76 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004389/0.2818, allocations: 1.159 MB / 452.4 MB, free: 26.58 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006726/0.2825, allocations: 216.2 kB / 452.7 MB, free: 26.36 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005019/0.283, allocations: 479.2 kB / 453.1 MB, free: 25.89 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.283, allocations: 0.6562 kB / 453.1 MB, free: 25.89 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04199/0.325, allocations: 28.3 MB / 481.4 MB, free: 13.51 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.731/10.06, allocations: 11.78 kB / 481.4 MB, free: 13.5 MB / 334.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe 2>&1)