Running command: "" <> buildModelFMU(OpenHydraulics.Circuits.Regenerative,fileNamePrefix="OpenHydraulics_OpenHydraulics_Circuits_Regenerative",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(OpenHydraulics): time 2.195/2.195, 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 6.357e-05/6.379e-05, allocations: 8 kB / 283.1 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1207, allocations: 50.19 MB / 333.3 MB, free: 7.305 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5002/0.621, allocations: 97.98 MB / 431.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.6213, allocations: 87.52 kB / 431.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3403/0.9616, allocations: 75.41 MB / 0.4949 GB, free: 7.348 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.9617, allocations: 0 / 0.4949 GB, free: 7.348 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005929/0.9623, allocations: 87.8 kB / 0.495 GB, free: 7.262 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.01103/0.9733, allocations: 2.901 MB / 0.4978 GB, free: 4.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.9734, allocations: 12.03 kB / 0.4978 GB, free: 4.238 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001511/0.9749, allocations: 329.3 kB / 0.4982 GB, free: 3.906 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00215/0.9771, allocations: 395.4 kB / 0.4985 GB, free: 3.516 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008966/0.9861, allocations: 2.275 MB / 0.5008 GB, free: 1.168 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006235/0.9868, allocations: 295.5 kB / 0.501 GB, free: 0.8516 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001492/0.9883, allocations: 247.9 kB / 0.5013 GB, free: 0.6094 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01062/0.999, allocations: 2.577 MB / 0.5038 GB, free: 13.97 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001343/0.9991, allocations: 7.906 kB / 0.5038 GB, free: 13.96 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006401/0.9998, allocations: 96 kB / 0.5039 GB, free: 13.87 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.126e-05/0.9999, allocations: 59.95 kB / 0.5039 GB, free: 13.81 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008853/1.009, allocations: 2.306 MB / 0.5062 GB, free: 11.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.384/1.393, allocations: 14.23 MB / 0.5201 GB, free: 96.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007556/1.4, allocations: 2.742 MB / 0.5228 GB, free: 95.37 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003567/1.404, allocations: 1.033 MB / 0.5238 GB, free: 95.35 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004225/1.405, allocations: 139.3 kB / 0.5239 GB, free: 95.26 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00432/1.409, allocations: 1.199 MB / 0.5251 GB, free: 95.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=225): time 1.013e-05/1.409, allocations: 0 / 0.5251 GB, free: 95.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=251): time 0.03584/1.445, allocations: 8.782 MB / 0.5337 GB, free: 92.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/1.445, allocations: 318.9 kB / 0.534 GB, free: 92.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007856/1.453, allocations: 2.357 MB / 0.5363 GB, free: 91.93 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000716/1.454, allocations: 78.55 kB / 0.5363 GB, free: 91.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002089/1.456, allocations: 1.278 MB / 0.5376 GB, free: 91.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001485/1.457, allocations: 0.8383 MB / 0.5384 GB, free: 91.19 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002719/1.458, allocations: 48.69 kB / 0.5384 GB, free: 91.19 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002697/1.458, allocations: 393.8 kB / 0.5388 GB, free: 90.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002834/1.461, allocations: 0.9083 MB / 0.5397 GB, free: 90.87 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003187/1.464, allocations: 1.227 MB / 0.5409 GB, free: 90.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003214/1.467, allocations: 1.192 MB / 0.5421 GB, free: 90.11 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.095e-05/1.467, allocations: 3.875 kB / 0.5421 GB, free: 90.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=309) (initialization): time 0.00923/1.476, allocations: 3.067 MB / 0.5451 GB, free: 89.36 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001245/1.477, allocations: 234 kB / 0.5453 GB, free: 89.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.949e-05/1.477, allocations: 9.469 kB / 0.5453 GB, free: 89.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007563/1.477, allocations: 241.1 kB / 0.5455 GB, free: 89.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00443/1.482, allocations: 0.5128 MB / 0.546 GB, free: 89.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006719/1.489, allocations: 6.495 MB / 0.5524 GB, free: 83.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004189/1.493, allocations: 209.2 kB / 0.5526 GB, free: 83.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006757/1.494, allocations: 104.2 kB / 0.5527 GB, free: 83.73 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.001321/1.495, allocations: 0.6527 MB / 0.5533 GB, free: 83.35 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001156/1.496, allocations: 302.4 kB / 0.5536 GB, free: 83.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00983/1.506, allocations: 3.215 MB / 0.5567 GB, free: 82.52 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.271e-05/1.506, allocations: 25.19 kB / 0.5568 GB, free: 82.52 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/1.506, allocations: 3.781 kB / 0.5568 GB, free: 82.52 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.391e-05/1.506, allocations: 14.73 kB / 0.5568 GB, free: 82.52 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02078/1.527, allocations: 7.326 MB / 0.5639 GB, free: 80.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.158e-05/1.527, allocations: 8.219 kB / 0.5639 GB, free: 80.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004371/1.531, allocations: 468.3 kB / 0.5644 GB, free: 80.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007251/1.532, allocations: 221.1 kB / 0.5646 GB, free: 80.84 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006375/1.533, allocations: 75.59 kB / 0.5647 GB, free: 80.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005697/1.539, allocations: 6.065 MB / 0.5706 GB, free: 75.67 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.305e-06/1.539, allocations: 6.312 kB / 0.5706 GB, free: 75.67 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01121/1.55, allocations: 4.786 MB / 0.5753 GB, free: 73.97 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002759/1.553, allocations: 0.7234 MB / 0.576 GB, free: 73.71 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001107/1.554, allocations: 74.8 kB / 0.5761 GB, free: 73.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003346/1.557, allocations: 158.2 kB / 0.5762 GB, free: 73.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009351/1.558, allocations: 298.7 kB / 0.5765 GB, free: 73.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003088/1.558, allocations: 103.8 kB / 0.5766 GB, free: 73.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004801/1.563, allocations: 1.817 MB / 0.5784 GB, free: 73 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.242e-06/1.563, allocations: 0 / 0.5784 GB, free: 73 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005365/1.569, allocations: 0.7567 MB / 0.5791 GB, free: 72.91 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.01492/1.584, allocations: 7.039 MB / 0.586 GB, free: 68.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00739/1.591, allocations: 3.06 MB / 0.589 GB, free: 66.36 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/1.591, allocations: 0 / 0.589 GB, free: 66.36 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004949/1.596, allocations: 2.217 MB / 0.5911 GB, free: 64.93 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006847/1.603, allocations: 0.8088 MB / 0.5919 GB, free: 64.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01969/1.623, allocations: 5.824 MB / 0.5976 GB, free: 62.12 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003364/1.626, allocations: 2.074 MB / 0.5996 GB, free: 61.22 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004622/1.631, allocations: 0.5272 MB / 0.6002 GB, free: 61.15 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003661/1.635, allocations: 1.332 MB / 0.6015 GB, free: 60.13 MB / 442.7 MB Notification: Performance of SimCode: time 2.405e-06/1.635, allocations: 4 kB / 0.6015 GB, free: 60.13 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2076/1.842, allocations: 73.32 MB / 0.6731 GB, free: 1.555 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002312/1.843, allocations: 213.5 kB / 0.6733 GB, free: 1.328 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.867/7.71, allocations: 0 / 0.6733 GB, free: 1.328 MB / 442.7 MB