Running command: translateModel(OpenHydraulics.DevelopmentTests.DirectionalValveTest,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest") Notification: Performance of loadModel(OpenHydraulics): time 1.878/1.878, 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.197e-05/4.208e-05, allocations: 4 kB / 283 MB, free: 9.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08053/0.08059, allocations: 50.2 MB / 333.2 MB, free: 7.379 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3579/0.4386, allocations: 90.71 MB / 423.9 MB, free: 5.043 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/0.4388, allocations: 73.12 kB / 424 MB, free: 5.012 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1099/0.5487, allocations: 29.07 MB / 453.1 MB, free: 13.24 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.995e-06/0.5488, allocations: 0 / 453.1 MB, free: 13.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001164/0.5489, allocations: 32.16 kB / 453.1 MB, free: 13.21 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 241 * Number of variables: 241 Notification: Performance of Generate backend data structure: time 0.002699/0.5516, allocations: 1.223 MB / 454.3 MB, free: 11.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.5517, allocations: 8.031 kB / 454.3 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004372/0.5521, allocations: 150.3 kB / 454.5 MB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002227/0.5544, allocations: 0.9257 MB / 455.4 MB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.5545, allocations: 78 kB / 455.5 MB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002187/0.5547, allocations: 96 kB / 455.6 MB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002434/0.5572, allocations: 1.04 MB / 456.6 MB, free: 9.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.307e-05/0.5572, allocations: 0 / 456.6 MB, free: 9.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001457/0.5574, allocations: 47.98 kB / 456.7 MB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.758e-05/0.5574, allocations: 28 kB / 456.7 MB, free: 9.516 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00222/0.5597, allocations: 0.9334 MB / 457.6 MB, free: 8.582 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009075/0.5688, allocations: 5.948 MB / 463.6 MB, free: 1.926 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001989/0.5708, allocations: 0.7205 MB / 464.3 MB, free: 1.191 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008354/0.5716, allocations: 343.1 kB / 464.6 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003009/0.572, allocations: 191 kB / 464.8 MB, free: 0.6328 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.572, allocations: 43.34 kB / 464.9 MB, free: 0.5781 MB / 378.7 MB Notification: Performance of pre-optimization done (n=72): time 3.632e-06/0.572, allocations: 0 / 464.9 MB, free: 0.5781 MB / 378.7 MB Notification: Performance of matching and sorting (n=76): time 0.005396/0.5774, allocations: 1.891 MB / 466.8 MB, free: 14.64 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/0.5775, allocations: 60.12 kB / 466.8 MB, free: 14.57 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001843/0.5794, allocations: 0.9205 MB / 467.7 MB, free: 13.63 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.498e-05/0.5795, allocations: 41.7 kB / 467.8 MB, free: 13.58 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000557/0.58, allocations: 0.5309 MB / 468.3 MB, free: 13.04 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002863/0.5803, allocations: 268 kB / 468.6 MB, free: 12.78 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.311e-05/0.5804, allocations: 20 kB / 468.6 MB, free: 12.76 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.5806, allocations: 334 kB / 468.9 MB, free: 12.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000744/0.5814, allocations: 310.8 kB / 469.2 MB, free: 12.12 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008916/0.5823, allocations: 493.5 kB / 469.7 MB, free: 11.54 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008532/0.5832, allocations: 351.5 kB / 470 MB, free: 11.2 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.761e-06/0.5832, allocations: 0 / 470 MB, free: 11.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002192/0.5854, allocations: 0.9125 MB / 471 MB, free: 10.28 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.5854, allocations: 11.95 kB / 471 MB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.5854, allocations: 4 kB / 471 MB, free: 10.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.153e-05/0.5855, allocations: 12.72 kB / 471 MB, free: 10.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.5867, allocations: 223.6 kB / 471.2 MB, free: 10.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.01e-05/0.5868, allocations: 8 kB / 471.2 MB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008751/0.5877, allocations: 55.97 kB / 471.3 MB, free: 9.969 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/0.5878, allocations: 43.97 kB / 471.3 MB, free: 9.926 MB / 394.7 MB Warning: Assuming fixed start value for the following 3 variables: idealPump.phi:VARIABLE(unit = "rad" ) "Angle of rotation of pump" type: Real restriction.port_b.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 = restriction.p_init unit = "Pa" nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real restriction.port_a.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 = restriction.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: 24 * Number of states: 0 () * Number of discrete variables: 5 (valve4_3pos.A2T.data.zetaLaminarKnown,valve4_3pos.P2B.data.zetaLaminarKnown,valve4_3pos.B2T.data.zetaLaminarKnown,valve4_3pos.P2A.data.zetaLaminarKnown,restriction.data.zetaLaminarKnown) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003961/0.5882, allocations: 237.8 kB / 471.5 MB, free: 9.691 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000251/0.5885, allocations: 110.6 kB / 471.7 MB, free: 9.582 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00228/0.5908, allocations: 0.914 MB / 472.6 MB, free: 8.66 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.5908, allocations: 8 kB / 472.6 MB, free: 8.652 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.41e-06/0.5908, allocations: 0 / 472.6 MB, free: 8.652 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-05/0.5909, allocations: 11.92 kB / 472.6 MB, free: 8.641 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00495/0.5958, allocations: 2.273 MB / 474.9 MB, free: 6.258 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.594e-06/0.5958, allocations: 0 / 474.9 MB, free: 6.258 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.597, allocations: 175.8 kB / 475 MB, free: 6.086 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.411e-05/0.597, allocations: 4 kB / 475 MB, free: 6.082 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.505e-05/0.5971, allocations: 27.98 kB / 475.1 MB, free: 6.055 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.485e-06/0.5971, allocations: 4 kB / 475.1 MB, free: 6.051 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.991e-06/0.5972, allocations: 7.938 kB / 475.1 MB, free: 6.043 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002827/0.6, allocations: 1.408 MB / 476.5 MB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006437/0.6007, allocations: 299.6 kB / 476.8 MB, free: 4.246 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002015/0.6009, allocations: 19.94 kB / 476.8 MB, free: 4.227 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007143/0.6016, allocations: 51.88 kB / 476.8 MB, free: 4.176 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.6018, allocations: 56.59 kB / 476.9 MB, free: 4.121 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.222e-05/0.6019, allocations: 35.98 kB / 476.9 MB, free: 4.086 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001413/0.6033, allocations: 0.7024 MB / 477.6 MB, free: 3.371 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.96e-07/0.6033, allocations: 4 kB / 477.6 MB, free: 3.367 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001357/0.6047, allocations: 327.8 kB / 478 MB, free: 3.047 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (idealPump.phi,restriction.port_a.p,restriction.port_b.p,circuitTank.volumeOpen.m,valve4_3pos.dynamicResponse.y,valve4_3pos.dynamicResponse.yd) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001579/0.6063, allocations: 0.4898 MB / 478.5 MB, free: 2.602 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001686/0.608, allocations: 0.7011 MB / 479.2 MB, free: 1.902 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.049e-06/0.608, allocations: 0 / 479.2 MB, free: 1.902 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008023/0.6088, allocations: 383.4 kB / 479.5 MB, free: 1.527 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00166/0.6105, allocations: 308 kB / 479.8 MB, free: 1.227 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004219/0.6147, allocations: 1.814 MB / 481.6 MB, free: 15.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001106/0.6159, allocations: 1.182 MB / 482.8 MB, free: 14.16 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001071/0.617, allocations: 212.2 kB / 483 MB, free: 13.95 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000432/0.6174, allocations: 111.4 kB / 483.1 MB, free: 13.84 MB / 410.7 MB Notification: Performance of SimCode: time 2.307e-06/0.6174, allocations: 0 / 483.1 MB, free: 13.84 MB / 410.7 MB Notification: Performance of Templates: time 0.0421/0.6595, allocations: 16.65 MB / 499.8 MB, free: 13.21 MB / 426.7 MB