Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2.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: translateModel(OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2") translateModel(OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 111.6 kB / 16.42 MB, free: 6.457 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.001296/0.001296, allocations: 192.2 kB / 17.35 MB, free: 5.715 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.418/1.418, allocations: 205.1 MB / 223.2 MB, free: 12.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05719/0.05719, allocations: 11.84 MB / 282.4 MB, free: 204 kB / 222.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.00296/0.00296, allocations: 68.73 kB / 393 MB, free: 45.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1139, allocations: 49.23 MB / 442.2 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2): time 0.01121/0.1251, allocations: 9.571 MB / 451.8 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007931/0.1331, allocations: 4.428 MB / 456.2 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001768/0.135, allocations: 35.81 kB / 456.3 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001458/0.1365, allocations: 0.5746 MB / 456.8 MB, free: 3.406 MB / 334.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.003008/0.1395, allocations: 1.099 MB / 457.9 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003248/0.1428, allocations: 1.395 MB / 459.3 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004246/0.147, allocations: 3.356 MB / 462.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001377/0.1484, allocations: 0.8419 MB / 463.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001875/0.1503, allocations: 1.129 MB / 464.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002196/0.1525, allocations: 1.288 MB / 466 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007451/0.1533, allocations: 248 kB / 466.2 MB, free: 10 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001414/0.1547, allocations: 463.8 kB / 466.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008996/0.1556, allocations: 0.6384 MB / 467.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002382/0.158, allocations: 1.326 MB / 468.6 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004912/0.1629, allocations: 3.462 MB / 472.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.163, allocations: 0 / 472.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.163, allocations: 4 kB / 472.1 MB, free: 4.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001346/0.1631, allocations: 0 / 472.1 MB, free: 4.102 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.006757/0.1699, allocations: 2.853 MB / 474.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.17, allocations: 15.83 kB / 474.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008876/0.1708, allocations: 265.8 kB / 475.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002958/0.1738, allocations: 1.485 MB / 476.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002919/0.1741, allocations: 242 kB / 476.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000416/0.1746, allocations: 167.8 kB / 477.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003764/0.1783, allocations: 1.642 MB / 478.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.925e-05/0.1784, allocations: 11.91 kB / 478.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001693/0.1786, allocations: 60 kB / 478.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.533e-05/0.1786, allocations: 40 kB / 478.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00318/0.1818, allocations: 1.644 MB / 480.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01258/0.1944, allocations: 9.116 MB / 489.6 MB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002936/0.1974, allocations: 1.789 MB / 491.4 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001445/0.1989, allocations: 0.755 MB / 492.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001902/0.1991, allocations: 122.3 kB / 492.3 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001555/0.2006, allocations: 0.8286 MB / 493.1 MB, free: 13.87 MB / 382.1 MB Notification: Performance of pre-optimization done (n=159): time 4.789e-06/0.2007, allocations: 0 / 493.1 MB, free: 13.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=174): time 0.01319/0.2139, allocations: 6.455 MB / 499.6 MB, free: 7.125 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.214, allocations: 283 kB / 499.8 MB, free: 6.789 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003567/0.2176, allocations: 1.988 MB / 0.4901 GB, free: 4.754 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001856/0.2178, allocations: 57.7 kB / 0.4901 GB, free: 4.691 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007778/0.2186, allocations: 0.8678 MB / 0.491 GB, free: 3.812 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006063/0.2192, allocations: 0.5852 MB / 0.4915 GB, free: 3.219 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005592/0.2198, allocations: 299.5 kB / 0.4918 GB, free: 2.918 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.2199, allocations: 305.1 kB / 0.4921 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.2211, allocations: 0.574 MB / 0.4927 GB, free: 2.043 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001461/0.2226, allocations: 0.8713 MB / 0.4935 GB, free: 1.082 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01166/0.2343, allocations: 4.253 MB / 0.4977 GB, free: 12.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.331e-05/0.2343, allocations: 8 kB / 0.4977 GB, free: 12.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004233/0.2386, allocations: 2.174 MB / 0.4998 GB, free: 10.28 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/0.2387, allocations: 221.6 kB / 0.5 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.977e-05/0.2387, allocations: 15.94 kB / 0.5 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001747/0.2389, allocations: 56.7 kB / 0.5001 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/0.2405, allocations: 395.5 kB / 0.5005 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001598/0.2421, allocations: 1.759 MB / 0.5022 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001373/0.2435, allocations: 75.91 kB / 0.5022 GB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000182/0.2437, allocations: 75.97 kB / 0.5023 GB, free: 7.5 MB / 398.1 MB Warning: Assuming fixed start value for the following 8 variables: doubleActingCylinder.cushionHead.reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) "Normalized valve position (between 0 and 1)" type: Real doubleActingCylinder.cushionRod.reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) "Normalized valve position (between 0 and 1)" type: Real doubleActingCylinder.damper.v_rel:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.prefer ) "Relative velocity (= der(s_rel))" type: Real doubleActingCylinder.leakage_Head2Env.port_b.p:VARIABLE(flow=false min = 0.0 start = doubleActingCylinder.cushionHead.reliefValve.variableRestriction.p_init unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) "Normalized valve position (between 0 and 1)" type: Real position.w:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "If exact=false, Angular velocity of flange with respect to support else dummy" type: Real doubleActingCylinder.cushionRod.flowFraction:VARIABLE(fixed = true protected = true ) "fraction of flow allowed by cushion" type: Real doubleActingCylinder.cushionHead.flowFraction:VARIABLE(fixed = true protected = true ) "fraction of flow allowed by cushion" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 (reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionRod.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionRod.cushionRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionHead.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionHead.cushionRestriction.data.zetaLaminarKnown,doubleActingCylinder.cylinderChamberRod.empty,doubleActingCylinder.cylinderChamberHead.empty,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001423/0.2451, allocations: 0.8224 MB / 0.5031 GB, free: 6.633 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000613/0.2458, allocations: 217.3 kB / 0.5033 GB, free: 6.418 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004203/0.25, allocations: 2.253 MB / 0.5055 GB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.176e-05/0.25, allocations: 11.95 kB / 0.5055 GB, free: 4.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.25, allocations: 0 / 0.5055 GB, free: 4.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009922/0.251, allocations: 486.2 kB / 0.506 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004795/0.2515, allocations: 40 kB / 0.506 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.2526, allocations: 67.94 kB / 0.5061 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002481/0.2529, allocations: 125.8 kB / 0.5062 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004478/0.2574, allocations: 2.519 MB / 0.5087 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004871/0.2623, allocations: 3.074 MB / 0.5117 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001316/0.2636, allocations: 0.8082 MB / 0.5125 GB, free: 12.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002198/0.2658, allocations: 1.387 MB / 0.5138 GB, free: 11.31 MB / 414.1 MB Notification: Performance of Backend: time 4.21e-07/0.2658, allocations: 3.938 kB / 0.5138 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004629/0.2705, allocations: 2.1 MB / 0.5159 GB, free: 9.219 MB / 414.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.007819/0.2783, allocations: 5.202 MB / 0.521 GB, free: 3.852 MB / 414.1 MB Notification: Performance of Templates: time 0.2421/0.5204, allocations: 35.52 MB / 0.5557 GB, free: 68.83 MB / 414.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2.makefile (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2.sim & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2.pipe 2>&1)