Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.Circuits.Regenerative.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.Regenerative,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.Circuits.Regenerative") translateModel(OpenHydraulics.Circuits.Regenerative,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.Circuits.Regenerative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001792/0.001792, allocations: 107.9 kB / 16.41 MB, free: 6.473 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.002128/0.002128, allocations: 190.6 kB / 17.35 MB, free: 5.711 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.68/1.68, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05665/0.05665, allocations: 11.85 MB / 282.4 MB, free: 208 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.00156/0.00156, allocations: 68.31 kB / 393 MB, free: 45.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1034, allocations: 49.24 MB / 442.2 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.Circuits.Regenerative): time 0.01385/0.1173, allocations: 12.85 MB / 455.1 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01193/0.1292, allocations: 5.623 MB / 460.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004758/0.1341, allocations: 43.81 kB / 460.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002461/0.1366, allocations: 0.8035 MB / 461.6 MB, free: 14.68 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.006192/0.1429, allocations: 1.541 MB / 463.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007363/0.1502, allocations: 1.858 MB / 465 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009178/0.1594, allocations: 4.936 MB / 469.9 MB, free: 6.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003304/0.1628, allocations: 1.393 MB / 471.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004225/0.167, allocations: 1.713 MB / 473 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004343/0.1714, allocations: 1.922 MB / 474.9 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001683/0.1731, allocations: 364 kB / 475.3 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002848/0.176, allocations: 0.5897 MB / 475.9 MB, free: 288 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001839/0.1779, allocations: 0.9384 MB / 476.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004968/0.1829, allocations: 1.963 MB / 478.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00895/0.1918, allocations: 5.078 MB / 483.8 MB, free: 8.273 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1919, allocations: 0 / 483.8 MB, free: 8.273 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1919, allocations: 0 / 483.8 MB, free: 8.273 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001841/0.1921, allocations: 0 / 483.8 MB, free: 8.273 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: 602 * Number of variables: 602 Notification: Performance of Generate backend data structure: time 0.009633/0.2017, allocations: 3.942 MB / 487.8 MB, free: 4.211 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.803e-05/0.2018, allocations: 11.89 kB / 487.8 MB, free: 4.199 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009631/0.2028, allocations: 396.3 kB / 488.2 MB, free: 3.809 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003717/0.2065, allocations: 2.071 MB / 490.3 MB, free: 1.664 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002882/0.2068, allocations: 299.5 kB / 490.6 MB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003498/0.2072, allocations: 243.9 kB / 490.8 MB, free: 1.105 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004901/0.2121, allocations: 2.734 MB / 493.5 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.678e-05/0.2122, allocations: 7.906 kB / 493.5 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002193/0.2124, allocations: 99.98 kB / 493.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.285e-05/0.2124, allocations: 56 kB / 493.7 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004374/0.2168, allocations: 2.462 MB / 496.1 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01958/0.2364, allocations: 14.11 MB / 0.4983 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004086/0.2405, allocations: 2.757 MB / 0.501 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001817/0.2424, allocations: 1.056 MB / 0.502 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002322/0.2426, allocations: 143 kB / 0.5022 GB, free: 8.027 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002048/0.2447, allocations: 1.243 MB / 0.5034 GB, free: 6.754 MB / 398.1 MB Notification: Performance of pre-optimization done (n=223): time 4.749e-06/0.2447, allocations: 0 / 0.5034 GB, free: 6.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=249): time 0.02036/0.2651, allocations: 9.719 MB / 0.5129 GB, free: 12.72 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001759/0.2653, allocations: 316.7 kB / 0.5132 GB, free: 12.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004384/0.2697, allocations: 2.744 MB / 0.5158 GB, free: 9.578 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003982/0.2701, allocations: 73.7 kB / 0.5159 GB, free: 9.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001403/0.2715, allocations: 1.274 MB / 0.5172 GB, free: 8.215 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001041/0.2726, allocations: 0.8354 MB / 0.518 GB, free: 7.367 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007089/0.2733, allocations: 420.7 kB / 0.5184 GB, free: 6.949 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.2734, allocations: 301.1 kB / 0.5187 GB, free: 6.652 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001865/0.2753, allocations: 0.9442 MB / 0.5196 GB, free: 5.699 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001933/0.2772, allocations: 1.236 MB / 0.5208 GB, free: 4.312 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2902/0.5675, allocations: 5.693 MB / 0.5263 GB, free: 82.27 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.206e-05/0.5675, allocations: 5.781 kB / 0.5264 GB, free: 82.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=309) (initialization): time 0.007132/0.5747, allocations: 3.165 MB / 0.5294 GB, free: 81.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.818e-05/0.5748, allocations: 231.5 kB / 0.5297 GB, free: 81.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.258e-05/0.5748, allocations: 9.406 kB / 0.5297 GB, free: 81.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005535/0.5754, allocations: 256.2 kB / 0.5299 GB, free: 80.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002181/0.5776, allocations: 0.5161 MB / 0.5304 GB, free: 80.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00538/0.583, allocations: 7.258 MB / 0.5375 GB, free: 74.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002385/0.5854, allocations: 120.9 kB / 0.5376 GB, free: 74.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002407/0.5856, allocations: 101.9 kB / 0.5377 GB, free: 74.12 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: 41 * Number of states: 0 () * Number of discrete variables: 22 (RegenValve.A2T.data.zetaLaminarKnown,RegenValve.P2A.data.zetaLaminarKnown,RegenValve.P2B.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 (292): * Single equations (assignments): 280 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,6,100.0%), (1,5,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.002338/0.588, allocations: 1.053 MB / 0.5387 GB, free: 73.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007239/0.5887, allocations: 304.2 kB / 0.539 GB, free: 73.38 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006053/0.5947, allocations: 3.231 MB / 0.5422 GB, free: 71.68 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.651e-05/0.5948, allocations: 13.91 kB / 0.5422 GB, free: 71.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.5948, allocations: 1.812 kB / 0.5422 GB, free: 71.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001469/0.5963, allocations: 0.6428 MB / 0.5428 GB, free: 71.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003911/0.5967, allocations: 68.39 kB / 0.5429 GB, free: 71.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/0.598, allocations: 107.7 kB / 0.543 GB, free: 71.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004936/0.5985, allocations: 205.2 kB / 0.5432 GB, free: 71.28 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007117/0.6056, allocations: 3.462 MB / 0.5466 GB, free: 69.33 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005951/0.6116, allocations: 4.255 MB / 0.5507 GB, free: 67.12 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001613/0.6132, allocations: 1.153 MB / 0.5519 GB, free: 66.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003322/0.6165, allocations: 1.903 MB / 0.5537 GB, free: 65.93 MB / 414.1 MB Notification: Performance of Backend: time 6.71e-07/0.6165, allocations: 0 / 0.5537 GB, free: 65.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006406/0.623, allocations: 2.965 MB / 0.5566 GB, free: 64.15 MB / 414.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.01108/0.6341, allocations: 7.025 MB / 0.5635 GB, free: 58.5 MB / 414.1 MB Notification: Performance of Templates: time 0.07228/0.7064, allocations: 48.28 MB / 0.6106 GB, free: 10.21 MB / 414.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.Circuits.Regenerative.makefile (rm -f OpenHydraulics_OpenHydraulics.Circuits.Regenerative.pipe ; mkfifo OpenHydraulics_OpenHydraulics.Circuits.Regenerative.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.Circuits.Regenerative.pipe >> ../files/OpenHydraulics_OpenHydraulics.Circuits.Regenerative.sim & ./OpenHydraulics_OpenHydraulics.Circuits.Regenerative -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.Circuits.Regenerative.pipe 2>&1)