Running command: translateModel(OpenHydraulics.DevelopmentTests.ReliefValveTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest") Notification: Performance of loadModel(OpenHydraulics): time 1.95/1.95, 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.286e-05/4.3e-05, allocations: 4 kB / 283 MB, free: 9.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08289/0.08295, allocations: 50.2 MB / 333.2 MB, free: 7.367 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3607/0.4437, allocations: 88.57 MB / 421.8 MB, free: 7.172 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.4439, allocations: 73.97 kB / 421.9 MB, free: 7.141 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06795/0.5119, allocations: 17.28 MB / 439.1 MB, free: 9.094 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.782e-06/0.5119, allocations: 0 / 439.1 MB, free: 9.094 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.488e-05/0.512, allocations: 12 kB / 439.2 MB, free: 9.082 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.001893/0.5139, allocations: 0.9082 MB / 440.1 MB, free: 8.164 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.514, allocations: 12.03 kB / 440.1 MB, free: 8.152 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002868/0.5143, allocations: 79.06 kB / 440.2 MB, free: 8.074 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001129/0.5154, allocations: 0.5321 MB / 440.7 MB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.081e-05/0.5155, allocations: 47.75 kB / 440.7 MB, free: 7.582 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/0.5157, allocations: 60.73 kB / 440.8 MB, free: 7.543 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.5171, allocations: 0.6439 MB / 441.4 MB, free: 7.117 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.28e-05/0.5172, allocations: 3.906 kB / 441.4 MB, free: 7.113 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.9e-05/0.5173, allocations: 32.27 kB / 441.5 MB, free: 7.098 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.5173, allocations: 12 kB / 441.5 MB, free: 7.086 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.5185, allocations: 0.5077 MB / 442 MB, free: 6.777 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005642/0.5242, allocations: 3.429 MB / 445.4 MB, free: 3.574 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/0.5256, allocations: 0.5222 MB / 445.9 MB, free: 3.172 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000445/0.5261, allocations: 192.6 kB / 446.1 MB, free: 3.059 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001441/0.5262, allocations: 88.42 kB / 446.2 MB, free: 2.957 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.5263, allocations: 42.3 kB / 446.3 MB, free: 2.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.428e-06/0.5263, allocations: 0 / 446.3 MB, free: 2.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.003022/0.5293, allocations: 1.16 MB / 447.4 MB, free: 1.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.5294, allocations: 81.11 kB / 447.5 MB, free: 1.812 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008862/0.5303, allocations: 0.4948 MB / 448 MB, free: 1.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.98e-05/0.5304, allocations: 44.75 kB / 448 MB, free: 1.391 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000285/0.5307, allocations: 300.7 kB / 448.3 MB, free: 1.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.5309, allocations: 145.3 kB / 448.5 MB, free: 1.059 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.031e-05/0.531, allocations: 14.81 kB / 448.5 MB, free: 1.051 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002125/0.5312, allocations: 362.3 kB / 448.8 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004352/0.5316, allocations: 189.8 kB / 449 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005164/0.5322, allocations: 272.8 kB / 449.3 MB, free: 340 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004722/0.5327, allocations: 207.9 kB / 449.5 MB, free: 132 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.539e-06/0.5327, allocations: 0 / 449.5 MB, free: 132 kB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001446/0.5341, allocations: 0.5722 MB / 450.1 MB, free: 15.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.517e-05/0.5342, allocations: 33.7 kB / 450.1 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.5342, allocations: 4 kB / 450.1 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000272/0.5345, allocations: 100.8 kB / 450.2 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005925/0.5351, allocations: 103.8 kB / 450.3 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00233/0.5375, allocations: 1.631 MB / 451.9 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006526/0.5381, allocations: 60.05 kB / 452 MB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.868e-05/0.5382, allocations: 23.98 kB / 452 MB, free: 13.45 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.0003458/0.5386, allocations: 218.2 kB / 452.2 MB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.5388, allocations: 55.34 kB / 452.3 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001475/0.5402, allocations: 0.55 MB / 452.8 MB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.785e-06/0.5403, allocations: 8 kB / 452.8 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.09e-06/0.5403, allocations: 0 / 452.8 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.549e-06/0.5403, allocations: 0 / 452.8 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002807/0.5431, allocations: 1.276 MB / 454.1 MB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.8e-06/0.5432, allocations: 8.094 kB / 454.1 MB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005686/0.5437, allocations: 79.89 kB / 454.2 MB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002205/0.544, allocations: 84.86 kB / 454.3 MB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.414e-05/0.5441, allocations: 15.98 kB / 454.3 MB, free: 11.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001942/0.546, allocations: 1.495 MB / 455.8 MB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.425e-06/0.546, allocations: 4.062 kB / 455.8 MB, free: 9.426 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001814/0.5479, allocations: 0.8653 MB / 456.7 MB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004/0.5483, allocations: 200.3 kB / 456.9 MB, free: 8.293 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.5484, allocations: 16 kB / 456.9 MB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005702/0.549, allocations: 59.95 kB / 456.9 MB, free: 8.219 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003449/0.5494, allocations: 135.7 kB / 457.1 MB, free: 8.086 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.857e-05/0.5495, allocations: 15.98 kB / 457.1 MB, free: 8.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007094/0.5502, allocations: 397.5 kB / 457.5 MB, free: 7.684 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.58e-07/0.5502, allocations: 0 / 457.5 MB, free: 7.684 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000971/0.5512, allocations: 216 kB / 457.7 MB, free: 7.473 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.001483/0.5527, allocations: 460.2 kB / 458.1 MB, free: 7.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.554, allocations: 0.5648 MB / 458.7 MB, free: 6.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.734e-06/0.554, allocations: 0 / 458.7 MB, free: 6.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006943/0.5547, allocations: 377.9 kB / 459.1 MB, free: 6.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.5558, allocations: 177.9 kB / 459.2 MB, free: 5.918 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00239/0.5582, allocations: 0.983 MB / 460.2 MB, free: 4.906 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007368/0.5589, allocations: 0.9378 MB / 461.2 MB, free: 3.934 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005513/0.5595, allocations: 97.02 kB / 461.3 MB, free: 3.836 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002176/0.5597, allocations: 51.42 kB / 461.3 MB, free: 3.785 MB / 378.7 MB Notification: Performance of SimCode: time 1.753e-06/0.5597, allocations: 0 / 461.3 MB, free: 3.785 MB / 378.7 MB Notification: Performance of Templates: time 0.028/0.5878, allocations: 10.84 MB / 472.2 MB, free: 8.973 MB / 394.7 MB