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.001337/0.001337, allocations: 114.5 kB / 16.42 MB, free: 6.496 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.001286/0.001286, allocations: 188.3 kB / 17.35 MB, free: 5.758 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.286/1.286, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.06174/0.06174, allocations: 11.86 MB / 282.4 MB, free: 232 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.001567/0.001568, allocations: 74.92 kB / 393 MB, free: 45.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06757/0.06915, allocations: 49.23 MB / 442.2 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.Circuits.Regenerative): time 0.01199/0.08117, allocations: 12.87 MB / 455.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009521/0.09073, allocations: 5.624 MB / 460.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001988/0.09275, allocations: 43.81 kB / 460.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001486/0.09429, allocations: 0.7996 MB / 461.6 MB, free: 14.69 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.003215/0.09751, allocations: 1.608 MB / 463.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003631/0.1012, allocations: 1.855 MB / 465 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005085/0.1063, allocations: 4.928 MB / 470 MB, free: 6.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001644/0.1079, allocations: 1.404 MB / 471.4 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002169/0.1101, allocations: 1.709 MB / 473.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002257/0.1124, allocations: 1.922 MB / 475 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005359/0.1129, allocations: 364 kB / 475.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001229/0.1141, allocations: 0.5935 MB / 475.9 MB, free: 240 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007287/0.1149, allocations: 0.9306 MB / 476.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001864/0.1168, allocations: 1.967 MB / 478.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005891/0.1227, allocations: 5.099 MB / 483.9 MB, free: 8.203 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1227, allocations: 0 / 483.9 MB, free: 8.203 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1227, allocations: 4 kB / 483.9 MB, free: 8.199 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001287/0.1228, allocations: 0 / 483.9 MB, free: 8.199 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.007141/0.13, allocations: 4.04 MB / 488 MB, free: 4.035 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.13, allocations: 11.89 kB / 488 MB, free: 4.023 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007449/0.1308, allocations: 410.5 kB / 488.4 MB, free: 3.621 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003117/0.1339, allocations: 2.1 MB / 490.5 MB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002555/0.1342, allocations: 291.5 kB / 490.8 MB, free: 1.137 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003627/0.1346, allocations: 247.9 kB / 491 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004686/0.1393, allocations: 2.738 MB / 493.8 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.02e-05/0.1393, allocations: 7.938 kB / 493.8 MB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002081/0.1395, allocations: 96 kB / 493.9 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.413e-05/0.1396, allocations: 60 kB / 493.9 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004329/0.1439, allocations: 2.451 MB / 496.4 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0159/0.1598, allocations: 14.13 MB / 0.4985 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004021/0.1639, allocations: 2.757 MB / 0.5012 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001821/0.1657, allocations: 1.072 MB / 0.5023 GB, free: 7.949 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002351/0.166, allocations: 139 kB / 0.5024 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002064/0.1681, allocations: 1.239 MB / 0.5036 GB, free: 6.523 MB / 398.1 MB Notification: Performance of pre-optimization done (n=223): time 4.268e-06/0.1681, allocations: 0 / 0.5036 GB, free: 6.523 MB / 398.1 MB Notification: Performance of matching and sorting (n=249): time 0.02/0.1881, allocations: 9.811 MB / 0.5132 GB, free: 12.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001249/0.1882, allocations: 316.7 kB / 0.5135 GB, free: 12.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003558/0.1918, allocations: 2.744 MB / 0.5162 GB, free: 9.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001915/0.192, allocations: 81.69 kB / 0.5163 GB, free: 9.184 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001061/0.1931, allocations: 1.287 MB / 0.5175 GB, free: 7.887 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006544/0.1937, allocations: 0.8714 MB / 0.5184 GB, free: 7.008 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006722/0.1944, allocations: 428.7 kB / 0.5188 GB, free: 6.582 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.864e-05/0.1945, allocations: 301.1 kB / 0.5191 GB, free: 6.285 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001726/0.1962, allocations: 0.9364 MB / 0.52 GB, free: 5.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001922/0.1982, allocations: 1.244 MB / 0.5212 GB, free: 3.945 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1801/0.3783, allocations: 5.689 MB / 0.5267 GB, free: 82.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.138e-05/0.3783, allocations: 3.031 kB / 0.5267 GB, free: 82.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=309) (initialization): time 0.005/0.3833, allocations: 3.186 MB / 0.5299 GB, free: 81.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.694e-05/0.3834, allocations: 232.2 kB / 0.5301 GB, free: 81.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/0.3834, allocations: 9.625 kB / 0.5301 GB, free: 81.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004749/0.3839, allocations: 248.7 kB / 0.5303 GB, free: 81.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002185/0.3861, allocations: 0.5167 MB / 0.5308 GB, free: 81.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004441/0.3905, allocations: 7.264 MB / 0.5379 GB, free: 74.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001694/0.3923, allocations: 113.8 kB / 0.538 GB, free: 74.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002317/0.3925, allocations: 101.2 kB / 0.5381 GB, free: 74.71 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.001531/0.394, allocations: 1.055 MB / 0.5392 GB, free: 73.96 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004317/0.3945, allocations: 320.8 kB / 0.5395 GB, free: 73.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005311/0.3998, allocations: 3.232 MB / 0.5426 GB, free: 72.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.154e-05/0.3998, allocations: 13.39 kB / 0.5426 GB, free: 72.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.3999, allocations: 6.531 kB / 0.5426 GB, free: 72.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/0.4009, allocations: 0.6626 MB / 0.5433 GB, free: 71.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003751/0.4013, allocations: 62.34 kB / 0.5434 GB, free: 71.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/0.4026, allocations: 114.8 kB / 0.5435 GB, free: 71.9 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003762/0.4029, allocations: 200.5 kB / 0.5437 GB, free: 71.87 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005613/0.4086, allocations: 3.461 MB / 0.547 GB, free: 69.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005528/0.4141, allocations: 4.283 MB / 0.5512 GB, free: 67.66 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001581/0.4157, allocations: 1.144 MB / 0.5523 GB, free: 67.17 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002297/0.418, allocations: 1.896 MB / 0.5542 GB, free: 66.48 MB / 414.1 MB Notification: Performance of Backend: time 4.31e-07/0.418, allocations: 0 / 0.5542 GB, free: 66.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004924/0.423, allocations: 2.967 MB / 0.5571 GB, free: 64.7 MB / 414.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.008468/0.4314, allocations: 7.141 MB / 0.5641 GB, free: 58.63 MB / 414.1 MB Notification: Performance of Templates: time 0.06195/0.4934, allocations: 47.24 MB / 0.6102 GB, free: 11.39 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)