Running command: "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.ReliefValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(OpenHydraulics): time 1.976/1.976, 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 4.952e-05/4.945e-05, allocations: 5.359 kB / 283.1 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1056, allocations: 50.19 MB / 333.3 MB, free: 7.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4338/0.5394, allocations: 88.59 MB / 421.9 MB, free: 6.812 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.5397, allocations: 69.97 kB / 422 MB, free: 6.781 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07338/0.6131, allocations: 17.28 MB / 439.3 MB, free: 8.742 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.6132, allocations: 0 / 439.3 MB, free: 8.742 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.409e-05/0.6133, allocations: 12 kB / 439.3 MB, free: 8.73 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.002663/0.6159, allocations: 0.9117 MB / 440.2 MB, free: 7.809 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.616, allocations: 8.031 kB / 440.2 MB, free: 7.801 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002025/0.6162, allocations: 102.8 kB / 440.3 MB, free: 7.727 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003153/0.6166, allocations: 79.06 kB / 440.4 MB, free: 7.648 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/0.6179, allocations: 0.5374 MB / 440.9 MB, free: 7.184 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.618, allocations: 45.86 kB / 440.9 MB, free: 7.152 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001561/0.6182, allocations: 59.3 kB / 441 MB, free: 7.113 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001663/0.6199, allocations: 0.6414 MB / 441.6 MB, free: 6.691 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/0.6199, allocations: 15.84 kB / 441.7 MB, free: 6.676 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.981e-05/0.62, allocations: 25.77 kB / 441.7 MB, free: 6.668 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.3e-05/0.6201, allocations: 12 kB / 441.7 MB, free: 6.656 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00144/0.6215, allocations: 0.5072 MB / 442.2 MB, free: 6.348 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007513/0.629, allocations: 3.429 MB / 445.6 MB, free: 3.145 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001845/0.6309, allocations: 0.5245 MB / 446.2 MB, free: 2.742 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000589/0.6316, allocations: 190.7 kB / 446.3 MB, free: 2.629 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001851/0.6318, allocations: 97.42 kB / 446.4 MB, free: 2.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.715e-05/0.6318, allocations: 37 kB / 446.5 MB, free: 2.477 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.427e-06/0.6319, allocations: 0 / 446.5 MB, free: 2.477 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.003799/0.6357, allocations: 1.159 MB / 447.6 MB, free: 1.477 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.913e-05/0.6358, allocations: 81.11 kB / 447.7 MB, free: 1.379 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.6368, allocations: 0.4972 MB / 448.2 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001433/0.637, allocations: 41.44 kB / 448.3 MB, free: 0.957 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003206/0.6373, allocations: 304.2 kB / 448.5 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002049/0.6376, allocations: 142 kB / 448.7 MB, free: 0.625 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-05/0.6376, allocations: 11.44 kB / 448.7 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002106/0.6378, allocations: 362.3 kB / 449.1 MB, free: 288 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005325/0.6384, allocations: 190.5 kB / 449.2 MB, free: 168 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006027/0.639, allocations: 265 kB / 449.5 MB, free: 15.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005139/0.6395, allocations: 208.6 kB / 449.7 MB, free: 15.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.6396, allocations: 3.938 kB / 449.7 MB, free: 15.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001635/0.6412, allocations: 0.5715 MB / 450.3 MB, free: 15.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.767e-05/0.6413, allocations: 33.64 kB / 450.3 MB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/0.6413, allocations: 12.33 kB / 450.3 MB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003355/0.6417, allocations: 104.8 kB / 450.4 MB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009169/0.6426, allocations: 95.89 kB / 450.5 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003338/0.646, allocations: 1.631 MB / 452.1 MB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/0.6473, allocations: 64.05 kB / 452.2 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.433e-05/0.6475, allocations: 19.98 kB / 452.2 MB, free: 13.2 MB / 378.7 MB Warning: Assuming fixed start value for the following 3 variables: constantSpeed.phi:VARIABLE(unit = "rad" ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real reliefValve.valvePosition:VARIABLE(start = 0.0 ) "Normalized valve position (between 0 and 1)" type: Real idealPump.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, 0.0))))))))))))))))) start = idealPump.fluidPower2MechRot.p_init unit = "Pa" nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 9 (reliefValve.variableRestriction.data.zetaLaminarKnown,idealPump.mechanicalPumpLosses.free,$PRE.idealPump.mechanicalPumpLosses.startForward,idealPump.mechanicalPumpLosses.startForward,$PRE.idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.locked,$PRE.idealPump.mechanicalPumpLosses.mode,idealPump.mechanicalPumpLosses.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004891/0.648, allocations: 221.8 kB / 452.4 MB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002381/0.6482, allocations: 63.34 kB / 452.5 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0023/0.6505, allocations: 0.5462 MB / 453.1 MB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.6506, allocations: 4 kB / 453.1 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.6506, allocations: 4 kB / 453.1 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.6506, allocations: 0 / 453.1 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004204/0.6548, allocations: 1.276 MB / 454.3 MB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.6549, allocations: 4 kB / 454.3 MB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/0.656, allocations: 79.89 kB / 454.4 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003582/0.6564, allocations: 88.92 kB / 454.5 MB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.505e-05/0.6565, allocations: 15.98 kB / 454.5 MB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003185/0.6597, allocations: 1.491 MB / 456 MB, free: 9.176 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.6598, allocations: 3.938 kB / 456 MB, free: 9.172 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003069/0.6629, allocations: 0.8577 MB / 456.9 MB, free: 8.262 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006504/0.6636, allocations: 200.3 kB / 457.1 MB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002359/0.6638, allocations: 16 kB / 457.1 MB, free: 8.031 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.665, allocations: 59.95 kB / 457.1 MB, free: 7.973 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006037/0.6656, allocations: 143.7 kB / 457.3 MB, free: 7.832 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.379e-05/0.6657, allocations: 15.98 kB / 457.3 MB, free: 7.816 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001113/0.6668, allocations: 401.5 kB / 457.7 MB, free: 7.426 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6668, allocations: 0 / 457.7 MB, free: 7.426 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001824/0.6687, allocations: 219.9 kB / 457.9 MB, free: 7.211 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (idealPump.portP.p,reliefValve.valvePosition,circuitTank.volumeOpen.m,constantSpeed.phi) * Number of discrete variables: 4 (idealPump.mechanicalPumpLosses.startForward,idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.locked,idealPump.mechanicalPumpLosses.mode) * Number of discrete states: 3 (idealPump.mechanicalPumpLosses.mode,idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.005345/0.6741, allocations: 1.941 MB / 459.8 MB, free: 5.266 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002351/0.6765, allocations: 0.5649 MB / 460.4 MB, free: 4.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/0.6765, allocations: 0 / 460.4 MB, free: 4.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.6777, allocations: 384.9 kB / 460.8 MB, free: 4.281 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001939/0.6797, allocations: 170.8 kB / 461 MB, free: 4.117 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004966/0.6847, allocations: 1.165 MB / 462.1 MB, free: 2.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009549/0.6857, allocations: 0.9417 MB / 463.1 MB, free: 1.934 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009072/0.6866, allocations: 97.02 kB / 463.2 MB, free: 1.836 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007332/0.6874, allocations: 223.3 kB / 463.4 MB, free: 1.617 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6874, allocations: 0 / 463.4 MB, free: 1.617 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06558/0.753, allocations: 16.44 MB / 479.8 MB, free: 1.195 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002958/0.7533, allocations: 215.4 kB / 480 MB, free: 0.9727 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.009/3.762, allocations: 4 kB / 480 MB, free: 0.9688 MB / 394.7 MB