Running command: translateModel(OpenHydraulics.Circuits.Regenerative,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.Circuits.Regenerative") Notification: Performance of loadModel(OpenHydraulics): time 1.868/1.868, allocations: 217.8 MB / 229.9 MB, free: 14.2 MB / 202.7 MB Warning: Requested package Modelica of version 3.2, but this package was already loaded with version 3.2.3. You might experience problems if these versions are incompatible. Notification: Performance of FrontEnd - loaded program: time 3.925e-05/3.927e-05, allocations: 4 kB / 283 MB, free: 9.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08368/0.08373, allocations: 50.2 MB / 333.2 MB, free: 7.398 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3758/0.4596, allocations: 97.96 MB / 431.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.4598, allocations: 80.77 kB / 431.3 MB, free: 13.89 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3015/0.7613, allocations: 75.4 MB / 0.4948 GB, free: 7.566 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.16e-06/0.7614, allocations: 0 / 0.4948 GB, free: 7.566 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003833/0.7618, allocations: 87.86 kB / 0.4949 GB, free: 7.48 MB / 426.7 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.008703/0.7705, allocations: 2.901 MB / 0.4977 GB, free: 4.469 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.7705, allocations: 8.031 kB / 0.4977 GB, free: 4.461 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001498/0.7721, allocations: 399.4 kB / 0.4981 GB, free: 4.066 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007152/0.7792, allocations: 2.275 MB / 0.5003 GB, free: 1.719 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004079/0.7797, allocations: 291.5 kB / 0.5006 GB, free: 1.406 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006978/0.7804, allocations: 251.9 kB / 0.5008 GB, free: 1.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006581/0.787, allocations: 2.573 MB / 0.5033 GB, free: 14.53 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.441e-05/0.7871, allocations: 7.906 kB / 0.5033 GB, free: 14.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003659/0.7875, allocations: 100 kB / 0.5034 GB, free: 14.42 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.308e-05/0.7876, allocations: 63.95 kB / 0.5035 GB, free: 14.36 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00686/0.7944, allocations: 2.302 MB / 0.5058 GB, free: 12.05 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2748/1.069, allocations: 14.22 MB / 0.5196 GB, free: 96.59 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005322/1.075, allocations: 2.748 MB / 0.5223 GB, free: 95.89 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002317/1.077, allocations: 1.037 MB / 0.5233 GB, free: 95.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002546/1.077, allocations: 134.2 kB / 0.5235 GB, free: 95.78 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002631/1.08, allocations: 1.205 MB / 0.5246 GB, free: 95.62 MB / 442.7 MB Notification: Performance of pre-optimization done (n=225): time 6.827e-06/1.08, allocations: 2.906 kB / 0.5246 GB, free: 95.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=251): time 0.0239/1.104, allocations: 8.777 MB / 0.5332 GB, free: 93.06 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/1.104, allocations: 320.9 kB / 0.5335 GB, free: 92.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005883/1.11, allocations: 2.359 MB / 0.5358 GB, free: 92.46 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004627/1.11, allocations: 81.48 kB / 0.5359 GB, free: 92.43 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001303/1.112, allocations: 1.278 MB / 0.5371 GB, free: 92.15 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000855/1.113, allocations: 0.8354 MB / 0.538 GB, free: 91.72 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001894/1.113, allocations: 49.06 kB / 0.538 GB, free: 91.72 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001757/1.113, allocations: 395.8 kB / 0.5384 GB, free: 91.41 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002213/1.115, allocations: 0.9084 MB / 0.5393 GB, free: 91.4 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002307/1.118, allocations: 1.227 MB / 0.5405 GB, free: 90.97 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002354/1.12, allocations: 1.194 MB / 0.5416 GB, free: 90.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/1.12, allocations: 3.844 kB / 0.5416 GB, free: 90.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=309) (initialization): time 0.007628/1.128, allocations: 3.063 MB / 0.5446 GB, free: 89.89 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.411e-05/1.128, allocations: 235.2 kB / 0.5449 GB, free: 89.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/1.128, allocations: 8.875 kB / 0.5449 GB, free: 89.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006289/1.128, allocations: 237.8 kB / 0.5451 GB, free: 89.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002802/1.131, allocations: 0.5078 MB / 0.5456 GB, free: 89.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005709/1.137, allocations: 6.505 MB / 0.5519 GB, free: 84.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003756/1.141, allocations: 206.6 kB / 0.5521 GB, free: 84.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004045/1.141, allocations: 100.7 kB / 0.5522 GB, free: 84.27 MB / 442.7 MB Warning: Assuming fixed start value for the following 10 variables: constantSpeed.phi:VARIABLE(unit = "rad" ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real constantDisplacementPump.portP.p:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))))))))))))))))))))))))))))))))))))) start = constantDisplacementPump.fluidPower2MechRot.p_init unit = "Pa" nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real RegenValve.portB.p:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))))))))))) start = RegenValve.P2B.p_init unit = "Pa" nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real RegenValve.portA.p:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))))))))))))))))))))))) start = RegenValve.P2A.p_init unit = "Pa" nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real doubleActingCylinder.damper.v_rel:VARIABLE(start = 0.0 unit = "m/s" stateSelect=StateSelect.prefer ) "Relative velocity (= der(s_rel))" type: Real doubleActingCylinder.cushionRod.flowFraction:VARIABLE(protected = true ) "fraction of flow allowed by cushion" type: Real doubleActingCylinder.cushionRod.reliefValve.valvePosition:VARIABLE(start = 0.0 ) "Normalized valve position (between 0 and 1)" type: Real doubleActingCylinder.cushionHead.flowFraction:VARIABLE(protected = true ) "fraction of flow allowed by cushion" type: Real doubleActingCylinder.cushionHead.reliefValve.valvePosition:VARIABLE(start = 0.0 ) "Normalized valve position (between 0 and 1)" type: Real reliefValve.valvePosition:VARIABLE(start = 0.0 ) "Normalized valve position (between 0 and 1)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 22 (constantDisplacementPump.mechanicalPumpLosses.free,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,$whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,doubleActingCylinder.cylinderChamberHead.empty,doubleActingCylinder.cylinderChamberRod.empty,$PRE.constantDisplacementPump.mechanicalPumpLosses.startForward,constantDisplacementPump.mechanicalPumpLosses.startForward,$PRE.constantDisplacementPump.mechanicalPumpLosses.startBackward,constantDisplacementPump.mechanicalPumpLosses.startBackward,constantDisplacementPump.mechanicalPumpLosses.locked,$PRE.constantDisplacementPump.mechanicalPumpLosses.mode,constantDisplacementPump.mechanicalPumpLosses.mode) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 5,(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009497/1.142, allocations: 0.6619 MB / 0.5529 GB, free: 83.88 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007508/1.143, allocations: 304.3 kB / 0.5532 GB, free: 83.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007256/1.15, allocations: 3.21 MB / 0.5563 GB, free: 83.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.416e-05/1.15, allocations: 25.97 kB / 0.5563 GB, free: 83.05 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/1.15, allocations: 3.469 kB / 0.5563 GB, free: 83.05 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.513e-05/1.15, allocations: 14.62 kB / 0.5563 GB, free: 83.05 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01611/1.166, allocations: 7.329 MB / 0.5635 GB, free: 81.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.951e-05/1.166, allocations: 7.094 kB / 0.5635 GB, free: 81.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002981/1.169, allocations: 464.8 kB / 0.564 GB, free: 81.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005961/1.17, allocations: 216.2 kB / 0.5642 GB, free: 81.38 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002483/1.17, allocations: 74.42 kB / 0.5642 GB, free: 81.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004853/1.175, allocations: 6.064 MB / 0.5702 GB, free: 76.21 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.954e-06/1.175, allocations: 7.469 kB / 0.5702 GB, free: 76.21 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009819/1.185, allocations: 4.791 MB / 0.5748 GB, free: 74.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002129/1.187, allocations: 0.7279 MB / 0.5756 GB, free: 74.13 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006788/1.188, allocations: 64.78 kB / 0.5756 GB, free: 74.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002181/1.19, allocations: 162 kB / 0.5758 GB, free: 74.05 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006718/1.191, allocations: 303.9 kB / 0.5761 GB, free: 74.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000281/1.191, allocations: 94.89 kB / 0.5762 GB, free: 73.99 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003685/1.195, allocations: 1.822 MB / 0.5779 GB, free: 73.28 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.703e-06/1.195, allocations: 2.406 kB / 0.5779 GB, free: 73.28 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004119/1.199, allocations: 0.7532 MB / 0.5787 GB, free: 73.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 16 (reliefValve.valvePosition,doubleActingCylinder.cylinderChamberHead.port[3].p,doubleActingCylinder.cylinderChamberRod.port[3].p,doubleActingCylinder.cushionHead.reliefValve.valvePosition,doubleActingCylinder.cushionHead.flowFraction,doubleActingCylinder.cushionRod.reliefValve.valvePosition,doubleActingCylinder.cushionRod.flowFraction,doubleActingCylinder.damper.s_rel,doubleActingCylinder.damper.v_rel,circuitTank.volumeOpen.m,RegenValve.portA.p,RegenValve.portB.p,RegenValve.dynamicResponse.y,RegenValve.dynamicResponse.yd,constantDisplacementPump.portP.p,constantSpeed.phi) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,doubleActingCylinder.cylinderChamberHead.empty,doubleActingCylinder.cylinderChamberRod.empty,constantDisplacementPump.mechanicalPumpLosses.startForward,constantDisplacementPump.mechanicalPumpLosses.startBackward,constantDisplacementPump.mechanicalPumpLosses.locked,constantDisplacementPump.mechanicalPumpLosses.mode) * Number of discrete states: 5 (constantDisplacementPump.mechanicalPumpLosses.mode,constantDisplacementPump.mechanicalPumpLosses.startBackward,constantDisplacementPump.mechanicalPumpLosses.startForward,$whenCondition3,$whenCondition4) * Top-level inputs: 0 Notification: Strong component statistics for simulation (261): * Single equations (assignments): 249 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001861/1.201, allocations: 0.5938 MB / 0.5792 GB, free: 72.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005668/1.207, allocations: 3.061 MB / 0.5822 GB, free: 71.23 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.061e-06/1.207, allocations: 0 / 0.5822 GB, free: 71.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003779/1.21, allocations: 2.215 MB / 0.5844 GB, free: 69.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005497/1.216, allocations: 0.8117 MB / 0.5852 GB, free: 69.57 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01239/1.228, allocations: 5.169 MB / 0.5902 GB, free: 67.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002173/1.231, allocations: 2.076 MB / 0.5923 GB, free: 66.3 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003273/1.234, allocations: 0.515 MB / 0.5928 GB, free: 66.23 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00118/1.235, allocations: 268 kB / 0.593 GB, free: 66.21 MB / 442.7 MB Notification: Performance of SimCode: time 1.804e-06/1.235, allocations: 0 / 0.593 GB, free: 66.21 MB / 442.7 MB Notification: Performance of Templates: time 0.1065/1.341, allocations: 45.85 MB / 0.6378 GB, free: 38.25 MB / 442.7 MB