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.000903/0.000903, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.000958/0.000958, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.292/1.292, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05294/0.05294, allocations: 11.85 MB / 282.2 MB, free: 9.48 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.0005592/0.0005593, allocations: 16.22 kB / 343 MB, free: 22.39 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08972/0.09029, allocations: 50.21 MB / 393.2 MB, free: 4.133 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.007231/0.09756, allocations: 6.321 MB / 399.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005649/0.1032, allocations: 3.295 MB / 402.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009324/0.1042, allocations: 15.94 kB / 402.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009434/0.1052, allocations: 246.5 kB / 403.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002256/0.1074, allocations: 0.7282 MB / 403.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001755/0.1092, allocations: 0.6189 MB / 404.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001894/0.1111, allocations: 1.185 MB / 405.6 MB, free: 7.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006696/0.1118, allocations: 396.9 kB / 406 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007564/0.1126, allocations: 0.4942 MB / 406.5 MB, free: 6.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009159/0.1135, allocations: 0.5835 MB / 407.1 MB, free: 6.211 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002043/0.1137, allocations: 56 kB / 407.1 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007097/0.1144, allocations: 295.7 kB / 407.4 MB, free: 5.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000234/0.1147, allocations: 251 kB / 407.7 MB, free: 5.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002496/0.1149, allocations: 281 kB / 407.9 MB, free: 5.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00138/0.1163, allocations: 1.485 MB / 409.4 MB, free: 3.852 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.1163, allocations: 0 / 409.4 MB, free: 3.852 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.1163, allocations: 0 / 409.4 MB, free: 3.852 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.1164, allocations: 3.938 kB / 409.4 MB, free: 3.848 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.00221/0.1186, allocations: 1.363 MB / 410.8 MB, free: 2.434 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.1186, allocations: 8.031 kB / 410.8 MB, free: 2.426 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001762/0.1188, allocations: 159.8 kB / 410.9 MB, free: 2.262 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000249/0.1191, allocations: 150.2 kB / 411.1 MB, free: 2.113 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.1202, allocations: 0.7835 MB / 411.9 MB, free: 1.285 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.393e-05/0.1203, allocations: 74 kB / 412 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/0.1204, allocations: 99.94 kB / 412 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.1221, allocations: 1.106 MB / 413.2 MB, free: 16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.42e-05/0.1221, allocations: 3.953 kB / 413.2 MB, free: 15.99 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.016e-05/0.1222, allocations: 36 kB / 413.2 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.041e-05/0.1222, allocations: 24 kB / 413.2 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.1239, allocations: 1.011 MB / 414.2 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00621/0.1301, allocations: 6.011 MB / 420.2 MB, free: 8.199 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.1316, allocations: 0.7997 MB / 421 MB, free: 7.395 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002194/0.1319, allocations: 194.8 kB / 421.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.1319, allocations: 39.22 kB / 421.3 MB, free: 7.121 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 2.755e-06/0.1319, allocations: 0 / 421.3 MB, free: 7.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.004493/0.1364, allocations: 2.288 MB / 423.6 MB, free: 4.785 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/0.1365, allocations: 64.05 kB / 423.6 MB, free: 4.711 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001263/0.1377, allocations: 1.062 MB / 424.7 MB, free: 3.629 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.096e-05/0.1378, allocations: 33.7 kB / 424.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003967/0.1382, allocations: 0.5425 MB / 425.3 MB, free: 3.039 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/0.1384, allocations: 260.2 kB / 425.5 MB, free: 2.781 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.652e-05/0.1385, allocations: 16 kB / 425.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.1386, allocations: 345.9 kB / 425.9 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005562/0.1392, allocations: 346.7 kB / 426.2 MB, free: 2.082 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006465/0.1398, allocations: 0.4921 MB / 426.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000624/0.1404, allocations: 383.8 kB / 427.1 MB, free: 1.137 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1405, allocations: 0 / 427.1 MB, free: 1.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001663/0.1421, allocations: 1.015 MB / 428.1 MB, free: 116 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.1422, allocations: 8 kB / 428.1 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/0.1422, allocations: 4 kB / 428.1 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.893e-05/0.1422, allocations: 15.95 kB / 428.1 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1494/0.2917, allocations: 215.5 kB / 428.3 MB, free: 39.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.505e-05/0.2917, allocations: 12.27 kB / 428.3 MB, free: 39.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008265/0.2926, allocations: 58.39 kB / 428.4 MB, free: 39.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.281e-05/0.2927, allocations: 41.33 kB / 428.4 MB, free: 39.7 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.j3.volumeClosed.port[2].p:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 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] valve4_3pos.j2.volumeClosed.port[2].p:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 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] 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008202/0.2935, allocations: 426.7 kB / 428.8 MB, free: 39.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001529/0.2936, allocations: 111.8 kB / 429 MB, free: 39.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00185/0.2955, allocations: 0.9683 MB / 429.9 MB, free: 39.52 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.2955, allocations: 10.48 kB / 429.9 MB, free: 39.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.2955, allocations: 3.938 kB / 429.9 MB, free: 39.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.2955, allocations: 6.062 kB / 429.9 MB, free: 39.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003302/0.2989, allocations: 2.309 MB / 432.3 MB, free: 38.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.2989, allocations: 4.609 kB / 432.3 MB, free: 38.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007975/0.2997, allocations: 192.5 kB / 432.4 MB, free: 38.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.127e-05/0.2997, allocations: 9.406 kB / 432.5 MB, free: 38.54 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.502e-05/0.2998, allocations: 27.34 kB / 432.5 MB, free: 38.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.2998, allocations: 5.359 kB / 432.5 MB, free: 38.53 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.2998, allocations: 5.531 kB / 432.5 MB, free: 38.53 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/0.3017, allocations: 1.456 MB / 433.9 MB, free: 37.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000393/0.3021, allocations: 294 kB / 434.2 MB, free: 37.6 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.3022, allocations: 18.56 kB / 434.3 MB, free: 37.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004584/0.3027, allocations: 44.84 kB / 434.3 MB, free: 37.58 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.3028, allocations: 56.23 kB / 434.4 MB, free: 37.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.325e-05/0.3029, allocations: 28.42 kB / 434.4 MB, free: 37.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000879/0.3037, allocations: 0.7348 MB / 435.1 MB, free: 37.26 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3038, allocations: 3.938 kB / 435.1 MB, free: 37.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008576/0.3046, allocations: 314.9 kB / 435.4 MB, free: 37.22 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002926/0.3075, allocations: 2.832 MB / 438.3 MB, free: 35.32 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001318/0.3089, allocations: 0.7826 MB / 439 MB, free: 35.04 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3089, allocations: 0 / 439 MB, free: 35.04 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006704/0.3096, allocations: 406.6 kB / 439.4 MB, free: 34.9 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001167/0.3107, allocations: 319.2 kB / 439.8 MB, free: 34.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/0.3214, allocations: 10.57 MB / 450.3 MB, free: 27.37 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005775/0.322, allocations: 1.178 MB / 451.5 MB, free: 26.62 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007849/0.3228, allocations: 218.5 kB / 451.7 MB, free: 26.56 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005007/0.3233, allocations: 476.2 kB / 452.2 MB, free: 26.22 MB / 318.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3233, allocations: 0 / 452.2 MB, free: 26.22 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03529/0.3586, allocations: 26.76 MB / 478.9 MB, free: 1.133 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/0.3588, allocations: 226.6 kB / 479.2 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.337/2.696, allocations: 0 / 479.2 MB, free: 0.8906 MB / 318.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/linux/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) Environment - environmentSimulation: