Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.Circuits.OpenCenter_tandem.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.Circuits.OpenCenter_tandem,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.Circuits.OpenCenter_tandem") translateModel(OpenHydraulics.Circuits.OpenCenter_tandem,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.Circuits.OpenCenter_tandem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 101.8 kB / 16.24 MB, free: 6.34 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.001478/0.001478, allocations: 189.9 kB / 17.17 MB, free: 5.945 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.28/1.28, allocations: 205.1 MB / 223 MB, free: 12.36 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05331/0.05331, allocations: 11.84 MB / 282.2 MB, free: 340 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.001375/0.001375, allocations: 67.91 kB / 342.4 MB, free: 3.996 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2043/0.2057, allocations: 49.22 MB / 391.7 MB, free: 49.12 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.Circuits.OpenCenter_tandem): time 0.01903/0.2248, allocations: 23.23 MB / 414.9 MB, free: 31.46 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01588/0.2407, allocations: 9.331 MB / 424.2 MB, free: 22.6 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005047/0.2458, allocations: 91.56 kB / 424.3 MB, free: 22.51 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002887/0.2487, allocations: 1.662 MB / 426 MB, free: 20.84 MB / 318.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.007229/0.256, allocations: 3.097 MB / 429.1 MB, free: 17.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006168/0.2622, allocations: 3.54 MB / 432.6 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009139/0.2713, allocations: 10.01 MB / 442.6 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003079/0.2744, allocations: 2.87 MB / 445.5 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005204/0.2796, allocations: 3.41 MB / 448.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005931/0.2856, allocations: 3.925 MB / 452.8 MB, free: 9.883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001752/0.2874, allocations: 0.7227 MB / 453.5 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002813/0.2902, allocations: 0.9919 MB / 454.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001723/0.2919, allocations: 1.943 MB / 456.5 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006494/0.2984, allocations: 4.02 MB / 460.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01192/0.3104, allocations: 10.29 MB / 470.8 MB, free: 7.867 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3104, allocations: 0 / 470.8 MB, free: 7.867 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3104, allocations: 0 / 470.8 MB, free: 7.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002816/0.3107, allocations: 8 kB / 470.8 MB, free: 7.859 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: 1226 * Number of variables: 1226 Notification: Performance of Generate backend data structure: time 0.01459/0.3253, allocations: 7.689 MB / 478.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.3254, allocations: 11.89 kB / 478.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001478/0.3269, allocations: 0.7885 MB / 479.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006165/0.333, allocations: 4.098 MB / 483.4 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005038/0.3336, allocations: 0.593 MB / 484 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000721/0.3343, allocations: 491.8 kB / 484.5 MB, free: 9.883 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009409/0.3437, allocations: 5.592 MB / 490 MB, free: 4.234 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.264e-05/0.3438, allocations: 7.891 kB / 490.1 MB, free: 4.227 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004011/0.3442, allocations: 196 kB / 490.2 MB, free: 4.035 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.601e-05/0.3443, allocations: 120 kB / 490.4 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009098/0.3534, allocations: 5.14 MB / 495.5 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03619/0.3896, allocations: 29.11 MB / 0.5123 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008093/0.3978, allocations: 5.472 MB / 0.5177 GB, free: 9.062 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004008/0.4018, allocations: 2.211 MB / 0.5198 GB, free: 6.848 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003754/0.4022, allocations: 200.3 kB / 0.52 GB, free: 6.633 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004145/0.4064, allocations: 2.442 MB / 0.5224 GB, free: 4.137 MB / 414.1 MB Notification: Performance of pre-optimization done (n=449): time 8.326e-06/0.4064, allocations: 0 / 0.5224 GB, free: 4.137 MB / 414.1 MB Notification: Performance of matching and sorting (n=501): time 0.1942/0.6006, allocations: 20.04 MB / 0.542 GB, free: 119 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.6008, allocations: 0.5127 MB / 0.5425 GB, free: 118.4 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007061/0.6078, allocations: 5.799 MB / 0.5481 GB, free: 116.4 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006825/0.6086, allocations: 120 kB / 0.5482 GB, free: 116.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001835/0.6104, allocations: 2.69 MB / 0.5509 GB, free: 114.2 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001231/0.6116, allocations: 1.675 MB / 0.5525 GB, free: 112.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001093/0.6127, allocations: 0.8352 MB / 0.5533 GB, free: 112.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.68e-05/0.6128, allocations: 305.1 kB / 0.5536 GB, free: 112.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002908/0.6157, allocations: 1.899 MB / 0.5555 GB, free: 110.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003077/0.6188, allocations: 2.511 MB / 0.5579 GB, free: 108 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02813/0.6469, allocations: 11.51 MB / 0.5692 GB, free: 95.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.662e-05/0.647, allocations: 8 kB / 0.5692 GB, free: 95.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=620) (initialization): time 0.009775/0.6568, allocations: 6.457 MB / 0.5755 GB, free: 88.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001065/0.6569, allocations: 417.5 kB / 0.5759 GB, free: 88.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.789e-05/0.6569, allocations: 20 kB / 0.5759 GB, free: 88.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007059/0.6576, allocations: 454.4 kB / 0.5763 GB, free: 87.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004055/0.6617, allocations: 1.053 MB / 0.5774 GB, free: 86.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007383/0.6691, allocations: 14.53 MB / 0.5915 GB, free: 71.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004707/0.6738, allocations: 191.8 kB / 0.5917 GB, free: 71.1 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006495/0.6745, allocations: 203.9 kB / 0.5919 GB, free: 70.9 MB / 414.1 MB Warning: Assuming fixed start value for the following 17 variables: constantSpeed.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) "Normalized valve position (between 0 and 1)" type: Real 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 = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real doubleActingCylinder.leakage_Rod2Env.port_b.p:VARIABLE(flow=false min = 0.0 start = doubleActingCylinder.cushionRod.reliefValve.variableRestriction.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real doubleActingCylinder1.cushionHead.reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) "Normalized valve position (between 0 and 1)" type: Real doubleActingCylinder1.cushionRod.reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) "Normalized valve position (between 0 and 1)" type: Real doubleActingCylinder1.damper.v_rel:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.prefer ) "Relative velocity (= der(s_rel))" type: Real doubleActingCylinder1.leakage_Head2Env.port_b.p:VARIABLE(flow=false min = 0.0 start = doubleActingCylinder1.cushionHead.reliefValve.variableRestriction.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real doubleActingCylinder1.leakage_Rod2Env.port_b.p:VARIABLE(flow=false min = 0.0 start = doubleActingCylinder1.cushionRod.reliefValve.variableRestriction.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real valve4_3posOCtandem1.P2T.port_a.p:VARIABLE(flow=false min = 0.0 start = constantDisplacementPump.fluidPower2MechRot.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real doubleActingCylinder1.cushionRod.flowFraction:VARIABLE(fixed = true protected = true ) "fraction of flow allowed by cushion" type: Real doubleActingCylinder1.cushionHead.flowFraction:VARIABLE(fixed = true protected = true ) "fraction of flow allowed by cushion" 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: 80 * Number of states: 0 () * Number of discrete variables: 39 (valve4_3posOCtandem1.P2T.data.zetaLaminarKnown,valve4_3posOCtandem1.A2T.data.zetaLaminarKnown,valve4_3posOCtandem1.P2B.data.zetaLaminarKnown,valve4_3posOCtandem1.B2T.data.zetaLaminarKnown,valve4_3posOCtandem1.P2A.data.zetaLaminarKnown,doubleActingCylinder1.cushionRod.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder1.cushionRod.cushionRestriction.data.zetaLaminarKnown,doubleActingCylinder1.cushionHead.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder1.cushionHead.cushionRestriction.data.zetaLaminarKnown,valve4_3posOCtandem.P2T.data.zetaLaminarKnown,valve4_3posOCtandem.A2T.data.zetaLaminarKnown,valve4_3posOCtandem.P2B.data.zetaLaminarKnown,valve4_3posOCtandem.B2T.data.zetaLaminarKnown,valve4_3posOCtandem.P2A.data.zetaLaminarKnown,doubleActingCylinder.cushionRod.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionRod.cushionRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionHead.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionHead.cushionRestriction.data.zetaLaminarKnown,reliefValve.variableRestriction.data.zetaLaminarKnown,constantDisplacementPump.mechanicalPumpLosses.free,doubleActingCylinder1.cylinderChamberRod.empty,doubleActingCylinder1.cylinderChamberHead.empty,constantDisplacementPump.mechanicalPumpLosses.mode,$PRE.constantDisplacementPump.mechanicalPumpLosses.mode,constantDisplacementPump.mechanicalPumpLosses.locked,constantDisplacementPump.mechanicalPumpLosses.startBackward,$PRE.constantDisplacementPump.mechanicalPumpLosses.startBackward,constantDisplacementPump.mechanicalPumpLosses.startForward,$PRE.constantDisplacementPump.mechanicalPumpLosses.startForward,doubleActingCylinder.cylinderChamberRod.empty,doubleActingCylinder.cylinderChamberHead.empty,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (586): * Single equations (assignments): 563 * Array equations: 0 * Algorithm blocks: 15 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,6,100.0%), (1,7,100.0%), (1,3,100.0%), (1,3,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.002892/0.6774, allocations: 2.044 MB / 0.5939 GB, free: 68.76 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001096/0.6785, allocations: 0.6211 MB / 0.5945 GB, free: 68.13 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009473/0.688, allocations: 6.636 MB / 0.601 GB, free: 61.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.023e-05/0.6881, allocations: 23.91 kB / 0.601 GB, free: 61.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/0.6881, allocations: 0 / 0.601 GB, free: 61.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002211/0.6903, allocations: 1.243 MB / 0.6022 GB, free: 59.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007955/0.6911, allocations: 116 kB / 0.6023 GB, free: 59.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002307/0.6934, allocations: 195.9 kB / 0.6025 GB, free: 59.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005433/0.694, allocations: 395.6 kB / 0.6029 GB, free: 59.2 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01008/0.7041, allocations: 6.77 MB / 0.6095 GB, free: 52.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01101/0.7151, allocations: 8.398 MB / 0.6177 GB, free: 43.51 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00299/0.7181, allocations: 2.345 MB / 0.62 GB, free: 41.13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004758/0.7229, allocations: 3.997 MB / 0.6239 GB, free: 37.14 MB / 414.1 MB Notification: Performance of Backend: time 6.11e-07/0.7229, allocations: 0 / 0.6239 GB, free: 37.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008476/0.7314, allocations: 5.497 MB / 0.6293 GB, free: 31.58 MB / 414.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.01724/0.7486, allocations: 13.98 MB / 0.6429 GB, free: 17.43 MB / 414.1 MB Notification: Performance of Templates: time 0.2884/1.037, allocations: 97.54 MB / 0.7382 GB, free: 114 MB / 446.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.Circuits.OpenCenter_tandem.makefile (rm -f OpenHydraulics_OpenHydraulics.Circuits.OpenCenter_tandem.pipe ; mkfifo OpenHydraulics_OpenHydraulics.Circuits.OpenCenter_tandem.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.Circuits.OpenCenter_tandem.pipe >> ../files/OpenHydraulics_OpenHydraulics.Circuits.OpenCenter_tandem.sim & ./OpenHydraulics_OpenHydraulics.Circuits.OpenCenter_tandem -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.Circuits.OpenCenter_tandem.pipe 2>&1)