Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1.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.DoubleActingCylinderTestSimple1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1") translateModel(OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 119 kB / 16.42 MB, free: 6.441 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.001282/0.001282, allocations: 183.9 kB / 17.35 MB, free: 5.738 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.422/1.422, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05715/0.05715, allocations: 11.85 MB / 282.4 MB, free: 228 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.001519/0.001519, allocations: 73.67 kB / 393 MB, free: 45.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07837/0.0799, allocations: 49.23 MB / 442.2 MB, free: 2.199 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1): time 0.01095/0.09089, allocations: 11.49 MB / 453.7 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009474/0.1004, allocations: 5.745 MB / 459.5 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001904/0.1024, allocations: 39.81 kB / 459.5 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001484/0.1039, allocations: 0.6521 MB / 460.2 MB, free: 204 kB / 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.003413/0.1073, allocations: 1.394 MB / 461.6 MB, free: 14.79 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/Basic/BaseClasses/massFlowRate_dp_WallFriction.mo:82:9-82:71:writable] Warning: Re was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.004062/0.1114, allocations: 1.839 MB / 463.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004937/0.1164, allocations: 4.231 MB / 467.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001624/0.118, allocations: 1.107 MB / 468.7 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002124/0.1201, allocations: 1.425 MB / 470.2 MB, free: 6.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002713/0.1229, allocations: 1.611 MB / 471.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001035/0.1239, allocations: 304 kB / 472.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002105/0.126, allocations: 0.6986 MB / 472.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009869/0.127, allocations: 0.7669 MB / 473.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00207/0.1291, allocations: 1.641 MB / 475.2 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006061/0.1352, allocations: 4.238 MB / 479.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.1352, allocations: 0 / 479.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1353, allocations: 0 / 479.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001036/0.1354, allocations: 4 kB / 479.4 MB, free: 12.85 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 499 * Number of variables: 499 Notification: Performance of Generate backend data structure: time 0.00681/0.1422, allocations: 3.334 MB / 482.8 MB, free: 9.406 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.1423, allocations: 11.89 kB / 482.8 MB, free: 9.395 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006971/0.143, allocations: 321.2 kB / 483.1 MB, free: 9.078 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003655/0.1466, allocations: 1.756 MB / 484.8 MB, free: 7.273 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002642/0.1469, allocations: 274.7 kB / 485.1 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003893/0.1473, allocations: 199.9 kB / 485.3 MB, free: 6.785 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004151/0.1515, allocations: 2.023 MB / 487.3 MB, free: 4.754 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.602e-05/0.1516, allocations: 4 kB / 487.3 MB, free: 4.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001844/0.1518, allocations: 80 kB / 487.4 MB, free: 4.672 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.616e-05/0.1518, allocations: 48 kB / 487.5 MB, free: 4.625 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003619/0.1554, allocations: 1.999 MB / 489.5 MB, free: 2.625 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01622/0.1717, allocations: 11.97 MB / 0.4897 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003269/0.175, allocations: 1.784 MB / 0.4914 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002063/0.1771, allocations: 1.06 MB / 0.4924 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004685/0.1775, allocations: 463.5 kB / 0.4929 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001994/0.1795, allocations: 1.086 MB / 0.4939 GB, free: 0.875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=198): time 3.707e-06/0.1796, allocations: 0 / 0.4939 GB, free: 0.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=227): time 0.02493/0.2045, allocations: 9.311 MB / 0.503 GB, free: 7.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001598/0.2047, allocations: 320.7 kB / 0.5033 GB, free: 6.938 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003014/0.2077, allocations: 2.131 MB / 0.5054 GB, free: 4.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002497/0.208, allocations: 69.7 kB / 0.5055 GB, free: 4.695 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000853/0.2088, allocations: 1.014 MB / 0.5065 GB, free: 3.668 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007429/0.2096, allocations: 0.7623 MB / 0.5072 GB, free: 2.895 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006061/0.2102, allocations: 379.7 kB / 0.5076 GB, free: 2.516 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.2103, allocations: 301.1 kB / 0.5079 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001496/0.2118, allocations: 0.7421 MB / 0.5086 GB, free: 1.473 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001763/0.2136, allocations: 1.065 MB / 0.5096 GB, free: 308 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01752/0.2311, allocations: 5.567 MB / 0.5151 GB, free: 10.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.998e-05/0.2312, allocations: 4 kB / 0.5151 GB, free: 10.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=274) (initialization): time 0.005466/0.2366, allocations: 2.707 MB / 0.5177 GB, free: 7.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001314/0.2368, allocations: 225.6 kB / 0.5179 GB, free: 7.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.138e-05/0.2368, allocations: 12 kB / 0.5179 GB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007228/0.2376, allocations: 228 kB / 0.5182 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001916/0.2395, allocations: 475.3 kB / 0.5186 GB, free: 6.676 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.222/0.4615, allocations: 8.526 MB / 0.5269 GB, free: 82.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001931/0.4634, allocations: 78.34 kB / 0.527 GB, free: 82.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002574/0.4637, allocations: 89.45 kB / 0.5271 GB, free: 82.41 MB / 414.1 MB Warning: Assuming fixed start value for the following 9 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.s_rel:VARIABLE(start = 0.0 unit = "m" fixed = true nominal = doubleActingCylinder.damper.s_nominal stateSelect=StateSelect.prefer ) "Relative distance (= flange_b.s - flange_a.s)" 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: 29 * 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 (260): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,4,100.0%), (1,4,100.0%), (1,1,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001576/0.4653, allocations: 0.9057 MB / 0.528 GB, free: 82.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005672/0.4659, allocations: 255 kB / 0.5282 GB, free: 82.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005421/0.4713, allocations: 2.934 MB / 0.5311 GB, free: 81.22 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.632e-05/0.4714, allocations: 13.5 kB / 0.5311 GB, free: 81.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.4714, allocations: 0 / 0.5311 GB, free: 81.22 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00125/0.4726, allocations: 0.5678 MB / 0.5317 GB, free: 80.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004093/0.4731, allocations: 48.84 kB / 0.5317 GB, free: 80.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.4742, allocations: 79.56 kB / 0.5318 GB, free: 80.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003481/0.4745, allocations: 173.7 kB / 0.532 GB, free: 80.87 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006072/0.4806, allocations: 3.293 MB / 0.5352 GB, free: 78.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006779/0.4874, allocations: 3.968 MB / 0.539 GB, free: 77.02 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001878/0.4894, allocations: 1.059 MB / 0.5401 GB, free: 76.56 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0026/0.492, allocations: 1.486 MB / 0.5415 GB, free: 75.99 MB / 414.1 MB Notification: Performance of Backend: time 5.41e-07/0.492, allocations: 0 / 0.5415 GB, free: 75.99 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005531/0.4975, allocations: 2.93 MB / 0.5444 GB, free: 74.26 MB / 414.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.008085/0.5056, allocations: 6.289 MB / 0.5505 GB, free: 70.56 MB / 414.1 MB Notification: Performance of Templates: time 0.06098/0.5667, allocations: 44.39 MB / 0.5939 GB, free: 28.64 MB / 414.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1.makefile (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1.sim & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1.pipe 2>&1)