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.001041/0.001046, allocations: 105.6 kB / 16.24 MB, free: 6.336 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.0009935/0.0009936, allocations: 188 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.267/1.267, allocations: 205.1 MB / 223 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05312/0.05312, allocations: 11.84 MB / 282.2 MB, free: 324 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.001414/0.001415, allocations: 67.91 kB / 342.4 MB, free: 3.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.228/0.2294, allocations: 49.22 MB / 391.7 MB, free: 49.3 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.Circuits.OpenCenter): time 0.01244/0.2419, allocations: 13.97 MB / 405.6 MB, free: 39.08 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01052/0.2525, allocations: 5.944 MB / 411.6 MB, free: 34.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003288/0.2559, allocations: 49.69 kB / 411.6 MB, free: 34.15 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001869/0.2577, allocations: 0.8704 MB / 412.5 MB, free: 33.51 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.004519/0.2623, allocations: 1.674 MB / 414.2 MB, free: 32.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004479/0.2668, allocations: 1.975 MB / 416.1 MB, free: 30.58 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005788/0.2726, allocations: 5.449 MB / 421.6 MB, free: 25.4 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001707/0.2743, allocations: 1.548 MB / 423.1 MB, free: 23.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002648/0.277, allocations: 1.861 MB / 425 MB, free: 21.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002164/0.2791, allocations: 2.132 MB / 427.1 MB, free: 19.79 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004569/0.2796, allocations: 404 kB / 427.5 MB, free: 19.4 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001218/0.2808, allocations: 0.6326 MB / 428.1 MB, free: 18.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006456/0.2815, allocations: 1.032 MB / 429.2 MB, free: 17.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001832/0.2833, allocations: 2.177 MB / 431.4 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004469/0.2878, allocations: 5.565 MB / 436.9 MB, free: 9.961 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.2878, allocations: 0 / 436.9 MB, free: 9.961 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2878, allocations: 0 / 436.9 MB, free: 9.961 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001023/0.288, allocations: 0 / 436.9 MB, free: 9.961 MB / 318.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.007196/0.2952, allocations: 4.29 MB / 441.2 MB, free: 5.551 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.2952, allocations: 11.89 kB / 441.2 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007259/0.296, allocations: 431.9 kB / 441.6 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002812/0.2988, allocations: 2.246 MB / 443.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002171/0.299, allocations: 312 kB / 444.2 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003194/0.2993, allocations: 271.9 kB / 444.5 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004373/0.3037, allocations: 3.051 MB / 447.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-05/0.3038, allocations: 11.89 kB / 447.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002097/0.304, allocations: 104 kB / 447.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.411e-05/0.3041, allocations: 67.98 kB / 447.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004646/0.3087, allocations: 2.753 MB / 450.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01845/0.3272, allocations: 15.85 MB / 466.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004483/0.3317, allocations: 3.013 MB / 469.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001899/0.3336, allocations: 1.166 MB / 470.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002424/0.3339, allocations: 139 kB / 470.6 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002141/0.336, allocations: 1.345 MB / 472 MB, free: 4.852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=240): time 4.478e-06/0.3361, allocations: 0 / 472 MB, free: 4.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=267): time 0.02104/0.3571, allocations: 10.62 MB / 482.6 MB, free: 9.832 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.3573, allocations: 320.8 kB / 482.9 MB, free: 9.449 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003746/0.361, allocations: 3.041 MB / 485.9 MB, free: 6.398 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000178/0.3612, allocations: 81.7 kB / 486 MB, free: 6.312 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001091/0.3623, allocations: 1.427 MB / 487.4 MB, free: 4.871 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000637/0.363, allocations: 0.8893 MB / 488.3 MB, free: 3.969 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006687/0.3636, allocations: 453.3 kB / 488.8 MB, free: 3.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.123e-05/0.3637, allocations: 313.1 kB / 489.1 MB, free: 3.211 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001786/0.3655, allocations: 1.04 MB / 490.1 MB, free: 2.164 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001976/0.3675, allocations: 1.372 MB / 491.5 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01605/0.3836, allocations: 6.206 MB / 497.7 MB, free: 10.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.467e-06/0.3836, allocations: 4 kB / 497.7 MB, free: 10 MB / 382.1 MB Notification: Performance of matching and sorting (n=333) (initialization): time 0.005761/0.3894, allocations: 3.567 MB / 0.4895 GB, free: 6.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001378/0.3895, allocations: 229.6 kB / 0.4897 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/0.3896, allocations: 8 kB / 0.4897 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005501/0.3901, allocations: 296.2 kB / 0.49 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002183/0.3923, allocations: 0.5539 MB / 0.4906 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006454/0.3988, allocations: 9.067 MB / 0.4994 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001918/0.4007, allocations: 123.8 kB / 0.4995 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001958/0.4009, allocations: 116 kB / 0.4996 GB, free: 11.13 MB / 398.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 = 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 constantDisplacementPump.j2.volumeClosed.port[2].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 [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.001753/0.4027, allocations: 1.121 MB / 0.5007 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005377/0.4032, allocations: 339.8 kB / 0.5011 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005987/0.4092, allocations: 3.614 MB / 0.5046 GB, free: 5.832 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.711e-05/0.4093, allocations: 15.94 kB / 0.5046 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.4093, allocations: 0 / 0.5046 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/0.4106, allocations: 0.692 MB / 0.5053 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000402/0.411, allocations: 68 kB / 0.5053 GB, free: 5.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001359/0.4123, allocations: 119.9 kB / 0.5055 GB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003956/0.4128, allocations: 214 kB / 0.5057 GB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006552/0.4193, allocations: 3.755 MB / 0.5093 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006903/0.4262, allocations: 4.627 MB / 0.5139 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001912/0.4282, allocations: 1.267 MB / 0.5151 GB, free: 10.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002955/0.4311, allocations: 2.102 MB / 0.5171 GB, free: 8.609 MB / 414.1 MB Notification: Performance of Backend: time 6.51e-07/0.4311, allocations: 3.938 kB / 0.5171 GB, free: 8.605 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006733/0.4379, allocations: 3.252 MB / 0.5203 GB, free: 5.371 MB / 414.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.1582/0.5962, allocations: 7.705 MB / 0.5278 GB, free: 126.2 MB / 414.1 MB Notification: Performance of Templates: time 0.07648/0.6727, allocations: 53.51 MB / 0.5801 GB, free: 85.02 MB / 414.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)