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.001137/0.001143, allocations: 109.1 kB / 16.41 MB, free: 6.488 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.001254/0.001254, allocations: 190.6 kB / 17.35 MB, free: 5.727 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.321/1.321, 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.05595/0.05595, allocations: 11.85 MB / 282.4 MB, free: 200 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.001669/0.001669, allocations: 68.58 kB / 393 MB, free: 45.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0956/0.09727, allocations: 49.23 MB / 442.2 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.Circuits.OpenCenter_tandem): time 0.02118/0.1185, allocations: 23.24 MB / 465.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02027/0.1388, allocations: 9.321 MB / 474.8 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007111/0.146, allocations: 91.56 kB / 474.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00501/0.1511, allocations: 1.658 MB / 476.5 MB, free: 15.62 MB / 366.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.0117/0.1629, allocations: 3.102 MB / 479.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009923/0.1728, allocations: 3.542 MB / 483.2 MB, free: 8.996 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01569/0.1885, allocations: 10.05 MB / 493.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00604/0.1946, allocations: 2.874 MB / 496.1 MB, free: 11.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007363/0.202, allocations: 3.468 MB / 499.6 MB, free: 8.473 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008021/0.2101, allocations: 3.929 MB / 0.4917 GB, free: 4.527 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003569/0.2137, allocations: 0.7227 MB / 0.4924 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004646/0.2183, allocations: 0.9919 MB / 0.4934 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00368/0.2221, allocations: 1.939 MB / 0.4953 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008708/0.2308, allocations: 4.023 MB / 0.4992 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01587/0.2467, allocations: 10.38 MB / 0.5093 GB, free: 2.418 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.698e-06/0.2468, allocations: 0 / 0.5093 GB, free: 2.418 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2468, allocations: 4 kB / 0.5093 GB, free: 2.414 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004384/0.2472, allocations: 0 / 0.5093 GB, free: 2.414 MB / 398.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.02159/0.2688, allocations: 7.689 MB / 0.5169 GB, free: 10.54 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/0.2689, allocations: 15.89 kB / 0.5169 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003392/0.2723, allocations: 0.7846 MB / 0.5176 GB, free: 9.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01135/0.2837, allocations: 4.16 MB / 0.5217 GB, free: 5.496 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008707/0.2846, allocations: 0.5891 MB / 0.5223 GB, free: 4.855 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001997/0.2866, allocations: 495.8 kB / 0.5227 GB, free: 4.371 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.269/0.5556, allocations: 5.588 MB / 0.5282 GB, free: 78.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001741/0.5558, allocations: 11.36 kB / 0.5282 GB, free: 78.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006871/0.5565, allocations: 198 kB / 0.5284 GB, free: 78.68 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001238/0.5567, allocations: 116 kB / 0.5285 GB, free: 78.68 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01373/0.5704, allocations: 5.143 MB / 0.5335 GB, free: 77.05 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04472/0.6152, allocations: 28.98 MB / 0.5618 GB, free: 52.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00742/0.6227, allocations: 5.475 MB / 0.5672 GB, free: 48.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003901/0.6266, allocations: 2.23 MB / 0.5694 GB, free: 47.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003804/0.627, allocations: 197.4 kB / 0.5696 GB, free: 47.61 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004176/0.6312, allocations: 2.443 MB / 0.5719 GB, free: 46.08 MB / 414.1 MB Notification: Performance of pre-optimization done (n=449): time 6.863e-06/0.6312, allocations: 0 / 0.5719 GB, free: 46.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=501): time 0.04158/0.6728, allocations: 20.05 MB / 0.5915 GB, free: 27.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.673, allocations: 0.5142 MB / 0.592 GB, free: 26.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007512/0.6805, allocations: 5.803 MB / 0.5977 GB, free: 21.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001076/0.6816, allocations: 117.7 kB / 0.5978 GB, free: 20.89 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002027/0.6836, allocations: 2.685 MB / 0.6004 GB, free: 18.2 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001771/0.6854, allocations: 1.672 MB / 0.6021 GB, free: 16.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001186/0.6866, allocations: 0.8363 MB / 0.6029 GB, free: 15.7 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.155e-05/0.6867, allocations: 305.1 kB / 0.6032 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003138/0.6898, allocations: 1.908 MB / 0.605 GB, free: 13.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003539/0.6934, allocations: 2.499 MB / 0.6075 GB, free: 10.69 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03172/0.7251, allocations: 11.44 MB / 0.6186 GB, free: 14.52 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.3e-05/0.7252, allocations: 4 kB / 0.6186 GB, free: 14.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=620) (initialization): time 0.01455/0.7398, allocations: 6.459 MB / 0.625 GB, free: 7.754 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002687/0.7401, allocations: 417.5 kB / 0.6254 GB, free: 7.254 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-05/0.7401, allocations: 20 kB / 0.6254 GB, free: 7.234 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009113/0.741, allocations: 454.5 kB / 0.6258 GB, free: 6.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004465/0.7455, allocations: 1.049 MB / 0.6268 GB, free: 5.719 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.7563, allocations: 14.51 MB / 0.641 GB, free: 6.117 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004689/0.761, allocations: 195.8 kB / 0.6412 GB, free: 5.926 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009227/0.7619, allocations: 212 kB / 0.6414 GB, free: 5.719 MB / 446.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 = 1e5 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 = 1e5 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 = 1e5 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 = 1e5 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 = 1e5 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.004735/0.7667, allocations: 2.05 MB / 0.6434 GB, free: 3.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001769/0.7685, allocations: 0.6173 MB / 0.644 GB, free: 2.965 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01235/0.7808, allocations: 6.631 MB / 0.6505 GB, free: 12.03 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.525e-05/0.781, allocations: 31.83 kB / 0.6505 GB, free: 12 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.781, allocations: 4 kB / 0.6505 GB, free: 11.99 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003641/0.7846, allocations: 1.231 MB / 0.6517 GB, free: 10.73 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00135/0.786, allocations: 119.9 kB / 0.6518 GB, free: 10.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002862/0.7889, allocations: 191.9 kB / 0.652 GB, free: 10.43 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006967/0.7896, allocations: 395.8 kB / 0.6524 GB, free: 10.04 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01327/0.8028, allocations: 6.733 MB / 0.659 GB, free: 3.012 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0146/0.8175, allocations: 8.398 MB / 0.6672 GB, free: 10.37 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004395/0.8219, allocations: 2.345 MB / 0.6694 GB, free: 7.996 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007844/0.8298, allocations: 3.997 MB / 0.6733 GB, free: 4 MB / 478.1 MB Notification: Performance of Backend: time 1.293e-06/0.8298, allocations: 0 / 0.6733 GB, free: 4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01689/0.8467, allocations: 5.491 MB / 0.6787 GB, free: 14.39 MB / 494.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.02805/0.8748, allocations: 13.81 MB / 0.6922 GB, free: 368 kB / 494.1 MB Notification: Performance of Templates: time 0.3974/1.272, allocations: 93.45 MB / 0.7835 GB, free: 139.8 MB / 0.5137 GB 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)