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.001065/0.001065, allocations: 96.95 kB / 16.24 MB, free: 6.375 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.001045/0.001045, allocations: 189.9 kB / 17.17 MB, free: 5.977 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.25/1.25, allocations: 205.1 MB / 223 MB, free: 12.33 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05365/0.05365, allocations: 11.83 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.001412/0.001412, allocations: 67.91 kB / 342.4 MB, free: 3.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2591, allocations: 49.22 MB / 391.7 MB, free: 49.03 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.Circuits.Regenerative): time 0.01188/0.271, allocations: 12.84 MB / 404.5 MB, free: 39.72 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01049/0.2816, allocations: 5.628 MB / 410.1 MB, free: 35.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003001/0.2847, allocations: 47.16 kB / 410.2 MB, free: 35.06 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001591/0.2863, allocations: 0.8017 MB / 411 MB, free: 34.47 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.003766/0.29, allocations: 1.541 MB / 412.5 MB, free: 33.17 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003706/0.2938, allocations: 1.856 MB / 414.4 MB, free: 31.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004724/0.2985, allocations: 4.907 MB / 419.3 MB, free: 27.56 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001384/0.2999, allocations: 1.41 MB / 420.7 MB, free: 26.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001928/0.3018, allocations: 1.678 MB / 422.4 MB, free: 24.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001539/0.3034, allocations: 1.918 MB / 424.3 MB, free: 22.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003846/0.3038, allocations: 368 kB / 424.6 MB, free: 22.12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009662/0.3048, allocations: 0.5975 MB / 425.2 MB, free: 21.53 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005116/0.3053, allocations: 0.9382 MB / 426.2 MB, free: 20.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001322/0.3066, allocations: 1.959 MB / 428.1 MB, free: 18.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003334/0.3099, allocations: 5.036 MB / 433.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.31, allocations: 0 / 433.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.31, allocations: 4 kB / 433.2 MB, free: 13.56 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.028e-05/0.3101, allocations: 0 / 433.2 MB, free: 13.56 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: 602 * Number of variables: 602 Notification: Performance of Generate backend data structure: time 0.005922/0.316, allocations: 3.934 MB / 437.1 MB, free: 9.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.3161, allocations: 15.89 kB / 437.1 MB, free: 9.492 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006092/0.3167, allocations: 388.3 kB / 437.5 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002322/0.319, allocations: 2.055 MB / 439.6 MB, free: 6.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001951/0.3192, allocations: 287.5 kB / 439.8 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00029/0.3195, allocations: 247.9 kB / 440.1 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003627/0.3231, allocations: 2.734 MB / 442.8 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.238e-05/0.3232, allocations: 7.844 kB / 442.8 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002012/0.3234, allocations: 100 kB / 442.9 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.339e-05/0.3235, allocations: 56 kB / 443 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003641/0.3271, allocations: 2.458 MB / 445.4 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01515/0.3423, allocations: 14.18 MB / 459.6 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003764/0.3461, allocations: 2.757 MB / 462.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0017/0.3478, allocations: 1.053 MB / 463.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002135/0.348, allocations: 143 kB / 463.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001955/0.35, allocations: 1.239 MB / 464.8 MB, free: 12.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=223): time 4.048e-06/0.35, allocations: 0 / 464.8 MB, free: 12.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=249): time 0.01955/0.3696, allocations: 9.715 MB / 474.5 MB, free: 1.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001727/0.3698, allocations: 308.7 kB / 474.8 MB, free: 1.629 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003889/0.3737, allocations: 2.748 MB / 477.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002065/0.3739, allocations: 77.69 kB / 477.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001127/0.375, allocations: 1.274 MB / 478.9 MB, free: 13.49 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006837/0.3757, allocations: 0.8278 MB / 479.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006347/0.3763, allocations: 424.6 kB / 480.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.635e-05/0.3764, allocations: 301.1 kB / 480.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001641/0.3781, allocations: 0.9457 MB / 481.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001859/0.38, allocations: 1.236 MB / 482.6 MB, free: 9.594 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01518/0.3952, allocations: 5.731 MB / 488.4 MB, free: 3.461 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.285e-05/0.3952, allocations: 4 kB / 488.4 MB, free: 3.457 MB / 366.1 MB Notification: Performance of matching and sorting (n=309) (initialization): time 0.005512/0.4007, allocations: 3.167 MB / 491.5 MB, free: 144 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001452/0.4009, allocations: 225.6 kB / 491.8 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.671e-05/0.4009, allocations: 12 kB / 491.8 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005102/0.4014, allocations: 251.2 kB / 492 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002131/0.4036, allocations: 0.5188 MB / 492.5 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005655/0.4092, allocations: 7.26 MB / 499.8 MB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0019/0.4112, allocations: 115.8 kB / 499.9 MB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002048/0.4114, allocations: 104 kB / 0.4883 GB, free: 7.055 MB / 382.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: 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.001694/0.4131, allocations: 1.06 MB / 0.4893 GB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005291/0.4136, allocations: 304.2 kB / 0.4896 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005492/0.4191, allocations: 3.241 MB / 0.4928 GB, free: 2.246 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.837e-05/0.4192, allocations: 23.94 kB / 0.4928 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.4192, allocations: 0 / 0.4928 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001223/0.4204, allocations: 0.6416 MB / 0.4934 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003593/0.4208, allocations: 60 kB / 0.4935 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.422, allocations: 114.5 kB / 0.4936 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003567/0.4224, allocations: 209.7 kB / 0.4938 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006075/0.4285, allocations: 3.469 MB / 0.4972 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006365/0.4348, allocations: 4.246 MB / 0.5013 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001739/0.4366, allocations: 1.153 MB / 0.5024 GB, free: 7.961 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002745/0.4394, allocations: 1.899 MB / 0.5043 GB, free: 6.059 MB / 398.1 MB Notification: Performance of Backend: time 3.71e-07/0.4394, allocations: 0 / 0.5043 GB, free: 6.059 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005701/0.4451, allocations: 2.964 MB / 0.5072 GB, free: 3.121 MB / 398.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.01064/0.4557, allocations: 7.119 MB / 0.5142 GB, free: 11.86 MB / 414.1 MB Notification: Performance of Templates: time 0.2417/0.6975, allocations: 48.56 MB / 0.5616 GB, free: 103.5 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)