Running command: "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_DoubleActingCylinderTestSimple1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(OpenHydraulics): time 2.223/2.223, 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.998e-05/7.008e-05, allocations: 11.94 kB / 283.1 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1223, allocations: 50.19 MB / 333.3 MB, free: 7.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4922/0.6146, allocations: 97.43 MB / 430.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.6149, allocations: 70.91 kB / 430.8 MB, free: 14.08 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/OpenHydraulics 1.0/Basic/BaseClasses/massFlowRate_dp_WallFriction.mo:82:9-82:71:writable] Warning: Re was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.2915/0.9065, allocations: 63.92 MB / 494.7 MB, free: 3.434 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.9065, allocations: 0 / 494.7 MB, free: 3.434 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004546/0.907, allocations: 67.92 kB / 494.8 MB, free: 3.367 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 499 * Number of variables: 499 Notification: Performance of Generate backend data structure: time 0.009168/0.9162, allocations: 2.484 MB / 497.3 MB, free: 0.7812 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/0.9163, allocations: 8.031 kB / 497.3 MB, free: 0.7734 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001264/0.9175, allocations: 282.6 kB / 497.6 MB, free: 500 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001749/0.9193, allocations: 328.5 kB / 497.9 MB, free: 168 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007413/0.9268, allocations: 1.929 MB / 499.8 MB, free: 14.19 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004493/0.9273, allocations: 270.7 kB / 0.4884 GB, free: 13.9 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000864/0.9281, allocations: 207.9 kB / 0.4886 GB, free: 13.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006572/0.9347, allocations: 1.89 MB / 0.4904 GB, free: 11.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.824e-05/0.9349, allocations: 3.906 kB / 0.4904 GB, free: 11.79 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003682/0.9352, allocations: 80 kB / 0.4905 GB, free: 11.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.039e-05/0.9353, allocations: 51.95 kB / 0.4905 GB, free: 11.66 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006879/0.9422, allocations: 1.855 MB / 0.4923 GB, free: 9.809 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02824/0.9705, allocations: 12.15 MB / 0.5042 GB, free: 12.38 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005539/0.9761, allocations: 1.755 MB / 0.5059 GB, free: 10.6 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003471/0.9796, allocations: 1.048 MB / 0.5069 GB, free: 9.555 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006857/0.9804, allocations: 463.5 kB / 0.5074 GB, free: 9.012 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003342/0.9837, allocations: 1.082 MB / 0.5084 GB, free: 7.895 MB / 442.7 MB Notification: Performance of pre-optimization done (n=200): time 6.212e-06/0.9838, allocations: 0 / 0.5084 GB, free: 7.895 MB / 442.7 MB Notification: Performance of matching and sorting (n=229): time 0.3377/1.322, allocations: 8.842 MB / 0.5171 GB, free: 106.1 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/1.322, allocations: 319.1 kB / 0.5174 GB, free: 105.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006158/1.328, allocations: 1.824 MB / 0.5192 GB, free: 105.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006809/1.329, allocations: 65.86 kB / 0.5192 GB, free: 105.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0015/1.33, allocations: 1.017 MB / 0.5202 GB, free: 105.4 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001219/1.331, allocations: 0.7695 MB / 0.521 GB, free: 105 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002136/1.332, allocations: 42.19 kB / 0.521 GB, free: 105 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002038/1.332, allocations: 388.3 kB / 0.5214 GB, free: 104.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002549/1.334, allocations: 0.7461 MB / 0.5221 GB, free: 104.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003106/1.338, allocations: 1.062 MB / 0.5231 GB, free: 104.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003252/1.341, allocations: 1.132 MB / 0.5243 GB, free: 104.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.777e-05/1.341, allocations: 2.875 kB / 0.5243 GB, free: 104.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=274) (initialization): time 0.009916/1.351, allocations: 2.69 MB / 0.5269 GB, free: 103.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001471/1.351, allocations: 226.3 kB / 0.5271 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.115e-05/1.351, allocations: 12.23 kB / 0.5271 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001255/1.352, allocations: 233.5 kB / 0.5273 GB, free: 103.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00423/1.357, allocations: 467.6 kB / 0.5278 GB, free: 103.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008895/1.366, allocations: 7.802 MB / 0.5354 GB, free: 96.67 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00357/1.369, allocations: 159 kB / 0.5355 GB, free: 96.67 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00068/1.37, allocations: 88.44 kB / 0.5356 GB, free: 96.67 MB / 442.7 MB Warning: Assuming fixed start value for the following 9 variables: lineA.volumeMiddle.port[2].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, 0.0))))))) start = lineA.wallFriction_a.p_init unit = "Pa" nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [2] position.w:VARIABLE(start = 0.0 unit = "rad/s" stateSelect=StateSelect.prefer ) "If exact=false, Angular velocity of flange with respect to support else dummy" type: Real reliefValve.valvePosition:VARIABLE(start = 0.0 ) "Normalized valve position (between 0 and 1)" type: Real doubleActingCylinder.damper.v_rel:VARIABLE(start = 0.0 unit = "m/s" stateSelect=StateSelect.prefer ) "Relative velocity (= der(s_rel))" type: Real doubleActingCylinder.damper.s_rel:VARIABLE(start = 0.0 unit = "m" nominal = doubleActingCylinder.damper.s_nominal stateSelect=StateSelect.prefer ) "Relative distance (= flange_b.s - flange_a.s)" 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 11 (reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionRod.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionRod.cushionRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionHead.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionHead.cushionRestriction.data.zetaLaminarKnown,$whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,doubleActingCylinder.cylinderChamberHead.empty,doubleActingCylinder.cylinderChamberRod.empty) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (260): * Single equations (assignments): 247 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 4,(1,100.0%) 1,(1,100.0%) 4,(1,100.0%) 1,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001043/1.371, allocations: 0.4908 MB / 0.5361 GB, free: 96.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009403/1.372, allocations: 250.5 kB / 0.5364 GB, free: 96.18 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01059/1.383, allocations: 2.938 MB / 0.5392 GB, free: 95.69 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.846e-05/1.383, allocations: 27.22 kB / 0.5392 GB, free: 95.69 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.517e-05/1.383, allocations: 4.094 kB / 0.5392 GB, free: 95.69 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.904e-05/1.383, allocations: 16.48 kB / 0.5393 GB, free: 95.69 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01942/1.402, allocations: 6.492 MB / 0.5456 GB, free: 94.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-05/1.402, allocations: 3.969 kB / 0.5456 GB, free: 94.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004051/1.406, allocations: 440.8 kB / 0.546 GB, free: 94.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001079/1.408, allocations: 209.5 kB / 0.5462 GB, free: 94.28 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005349/1.408, allocations: 69.08 kB / 0.5463 GB, free: 94.28 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006739/1.415, allocations: 7.4 MB / 0.5535 GB, free: 87.78 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/1.415, allocations: 9.953 kB / 0.5535 GB, free: 87.78 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01066/1.426, allocations: 4.196 MB / 0.5576 GB, free: 86.53 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002428/1.428, allocations: 0.6193 MB / 0.5582 GB, free: 86.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009303/1.429, allocations: 60.05 kB / 0.5583 GB, free: 86.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003169/1.432, allocations: 117.8 kB / 0.5584 GB, free: 86.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000814/1.433, allocations: 187.1 kB / 0.5586 GB, free: 86.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003296/1.433, allocations: 87.75 kB / 0.5587 GB, free: 86.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003653/1.437, allocations: 1.414 MB / 0.56 GB, free: 86.14 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.843e-06/1.437, allocations: 2.188 kB / 0.56 GB, free: 86.14 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004695/1.442, allocations: 0.7271 MB / 0.5608 GB, free: 86.14 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 17 (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,reliefValve.valvePosition,position.phi,position.w,lineA.port_a.p,lineA.port_b.p,lineA.volumeMiddle.port[2].p,lineB.port_b.p,lineB.volumeMiddle.port[2].p) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,doubleActingCylinder.cylinderChamberHead.empty,doubleActingCylinder.cylinderChamberRod.empty) * Number of discrete states: 2 ($whenCondition3,$whenCondition4) * Top-level inputs: 0 Notification: Strong component statistics for simulation (245): * Single equations (assignments): 232 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01347/1.455, allocations: 6.264 MB / 0.5669 GB, free: 83.36 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007081/1.463, allocations: 3.012 MB / 0.5698 GB, free: 82.29 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/1.463, allocations: 3 kB / 0.5698 GB, free: 82.29 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004333/1.467, allocations: 2.175 MB / 0.5719 GB, free: 81.27 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005663/1.473, allocations: 0.7076 MB / 0.5726 GB, free: 81.23 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01761/1.49, allocations: 5.25 MB / 0.5778 GB, free: 78.93 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002291/1.493, allocations: 1.824 MB / 0.5795 GB, free: 78.07 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003676/1.496, allocations: 469.5 kB / 0.58 GB, free: 78.02 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003024/1.499, allocations: 1.102 MB / 0.5811 GB, free: 77.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.142e-06/1.499, allocations: 4 kB / 0.5811 GB, free: 77.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1935/1.693, allocations: 63.48 MB / 0.6431 GB, free: 34.29 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002749/1.693, allocations: 229.2 kB / 0.6433 GB, free: 34.02 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.376/7.07, allocations: 4 kB / 0.6433 GB, free: 34.02 MB / 442.7 MB