Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.Circuits.OpenCenter.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,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.Circuits.OpenCenter") translateModel(OpenHydraulics.Circuits.OpenCenter,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.Circuits.OpenCenter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001203, allocations: 107.9 kB / 16.41 MB, free: 6.504 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.001129/0.001129, allocations: 194.5 kB / 17.35 MB, free: 5.762 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.427/1.427, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05643/0.05643, allocations: 11.85 MB / 282.4 MB, free: 236 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.001552/0.001552, allocations: 71.5 kB / 393 MB, free: 45.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1075, allocations: 49.23 MB / 442.2 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.Circuits.OpenCenter): time 0.01384/0.1214, allocations: 13.99 MB / 456.2 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01118/0.1326, allocations: 5.927 MB / 462.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002832/0.1355, allocations: 51.75 kB / 462.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00206/0.1376, allocations: 0.8656 MB / 463.1 MB, free: 13.2 MB / 350.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.004644/0.1423, allocations: 1.677 MB / 464.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004781/0.1471, allocations: 1.99 MB / 466.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007825/0.1549, allocations: 5.466 MB / 472.2 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002392/0.1574, allocations: 1.548 MB / 473.7 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003496/0.1609, allocations: 1.892 MB / 475.6 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003575/0.1645, allocations: 2.132 MB / 477.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001019/0.1655, allocations: 404 kB / 478.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001818/0.1673, allocations: 0.6326 MB / 478.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00094/0.1683, allocations: 1.039 MB / 479.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002826/0.1711, allocations: 2.177 MB / 482 MB, free: 10.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006533/0.1777, allocations: 5.604 MB / 487.6 MB, free: 4.527 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.1777, allocations: 4 kB / 487.6 MB, free: 4.523 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1777, allocations: 0 / 487.6 MB, free: 4.523 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001508/0.1779, allocations: 0 / 487.6 MB, free: 4.523 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: 668 * Number of variables: 668 Notification: Performance of Generate backend data structure: time 0.01098/0.1889, allocations: 4.294 MB / 491.9 MB, free: 112 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.986e-05/0.1889, allocations: 11.89 kB / 491.9 MB, free: 100 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/0.1902, allocations: 436 kB / 492.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004318/0.1945, allocations: 2.273 MB / 494.6 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000328/0.1949, allocations: 324 kB / 494.9 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005039/0.1954, allocations: 263.9 kB / 495.2 MB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005627/0.2011, allocations: 3.051 MB / 498.2 MB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.82e-05/0.2011, allocations: 15.84 kB / 498.3 MB, free: 9.594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002326/0.2014, allocations: 108 kB / 498.4 MB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.377e-05/0.2014, allocations: 64 kB / 498.4 MB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004961/0.2064, allocations: 2.742 MB / 0.4894 GB, free: 6.672 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0199/0.2263, allocations: 15.77 MB / 0.5048 GB, free: 5.293 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004483/0.2308, allocations: 3.025 MB / 0.5078 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002057/0.2329, allocations: 1.17 MB / 0.5089 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002491/0.2332, allocations: 147.2 kB / 0.5091 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002367/0.2356, allocations: 1.345 MB / 0.5104 GB, free: 15.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=240): time 5.15e-06/0.2356, allocations: 0 / 0.5104 GB, free: 15.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=267): time 0.02188/0.2575, allocations: 10.61 MB / 0.5207 GB, free: 4.426 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.2577, allocations: 312.8 kB / 0.521 GB, free: 4.051 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003816/0.2615, allocations: 3.041 MB / 0.524 GB, free: 1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003045/0.2618, allocations: 81.69 kB / 0.5241 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.214/0.4758, allocations: 1.428 MB / 0.5255 GB, free: 85.33 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001439/0.4773, allocations: 0.8934 MB / 0.5264 GB, free: 85.06 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009615/0.4782, allocations: 457.5 kB / 0.5268 GB, free: 85.03 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.591e-05/0.4783, allocations: 306.9 kB / 0.5271 GB, free: 84.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002083/0.4804, allocations: 1.041 MB / 0.5281 GB, free: 84.71 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002183/0.4826, allocations: 1.377 MB / 0.5294 GB, free: 83.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01776/0.5004, allocations: 6.176 MB / 0.5355 GB, free: 80.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.519e-05/0.5004, allocations: 3.25 kB / 0.5355 GB, free: 80.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=333) (initialization): time 0.007178/0.5076, allocations: 3.56 MB / 0.539 GB, free: 78.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.975e-05/0.5077, allocations: 228.1 kB / 0.5392 GB, free: 78.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-05/0.5078, allocations: 14.78 kB / 0.5392 GB, free: 78.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005736/0.5084, allocations: 289.2 kB / 0.5395 GB, free: 78.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002426/0.5108, allocations: 0.5605 MB / 0.54 GB, free: 78.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005343/0.5161, allocations: 9.047 MB / 0.5488 GB, free: 69.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002264/0.5184, allocations: 121.1 kB / 0.549 GB, free: 69.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002954/0.5188, allocations: 119.8 kB / 0.5491 GB, free: 69.88 MB / 414.1 MB Warning: Assuming fixed start value for the following 10 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 constantDisplacementPump.j2.volumeClosed.port[2].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 [3] 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: 46 * Number of states: 0 () * Number of discrete variables: 23 (valve4_3posOC.A2T.data.zetaLaminarKnown,valve4_3posOC.P2B.data.zetaLaminarKnown,valve4_3posOC.B2T.data.zetaLaminarKnown,valve4_3posOC.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,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,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 300 * 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): 4 systems {(1,6,100.0%), (1,5,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.001746/0.5205, allocations: 1.132 MB / 0.5502 GB, free: 69.08 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006209/0.5211, allocations: 341.7 kB / 0.5505 GB, free: 68.9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005355/0.5265, allocations: 3.599 MB / 0.554 GB, free: 66.96 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-05/0.5265, allocations: 11.39 kB / 0.554 GB, free: 66.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.5266, allocations: 4 kB / 0.554 GB, free: 66.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001427/0.528, allocations: 0.6964 MB / 0.5547 GB, free: 66.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005209/0.5285, allocations: 71 kB / 0.5548 GB, free: 66.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.5299, allocations: 120.7 kB / 0.5549 GB, free: 66.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003904/0.5303, allocations: 219.8 kB / 0.5551 GB, free: 66.36 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00614/0.5364, allocations: 3.737 MB / 0.5588 GB, free: 63.99 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006141/0.5426, allocations: 4.618 MB / 0.5633 GB, free: 59.8 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001736/0.5444, allocations: 1.275 MB / 0.5645 GB, free: 58.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002674/0.5471, allocations: 2.098 MB / 0.5666 GB, free: 56.42 MB / 414.1 MB Notification: Performance of Backend: time 7.11e-07/0.5471, allocations: 7.172 kB / 0.5666 GB, free: 56.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006291/0.5534, allocations: 3.237 MB / 0.5697 GB, free: 53.2 MB / 414.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.01016/0.5636, allocations: 7.633 MB / 0.5772 GB, free: 45.43 MB / 414.1 MB Notification: Performance of Templates: time 0.07334/0.6369, allocations: 53.14 MB / 0.6291 GB, free: 8.273 MB / 430.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.Circuits.OpenCenter.makefile (rm -f OpenHydraulics_OpenHydraulics.Circuits.OpenCenter.pipe ; mkfifo OpenHydraulics_OpenHydraulics.Circuits.OpenCenter.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.Circuits.OpenCenter.pipe >> ../files/OpenHydraulics_OpenHydraulics.Circuits.OpenCenter.sim & ./OpenHydraulics_OpenHydraulics.Circuits.OpenCenter -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.Circuits.OpenCenter.pipe 2>&1)