Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008556/0.0008556, allocations: 80.94 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000939/0.000939, allocations: 173 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9267/0.9267, allocations: 177.2 MB / 203.8 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics main/package.mo): time 0.03497/0.03497, allocations: 8.722 MB / 269 MB, free: 4.41 MB / 250.7 MB " [Timeout remaining time 180] Using package OpenHydraulics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple") translateModel(OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.452e-06/1.452e-06, allocations: 0 / 288 MB, free: 1.348 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.256e-05/1.402e-05, allocations: 9.828 kB / 288 MB, free: 1.34 MB / 266.7 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple): time 0.1319/0.132, allocations: 9.141 MB / 297.2 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006123/0.1381, allocations: 4.964 MB / 302.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008886/0.139, allocations: 42.19 kB / 302.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000839/0.1398, allocations: 0.6126 MB / 302.8 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0017/0.1415, allocations: 1.298 MB / 304.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002112/0.1436, allocations: 1.556 MB / 305.7 MB, free: 9.195 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002441/0.1461, allocations: 3.59 MB / 309.2 MB, free: 6.906 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005833/0.1466, allocations: 498.1 kB / 309.7 MB, free: 6.559 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001553/0.1482, allocations: 1.774 MB / 311.5 MB, free: 5.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008766/0.1491, allocations: 1.115 MB / 312.6 MB, free: 4.316 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001947/0.1493, allocations: 244 kB / 312.9 MB, free: 4.078 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000522/0.1498, allocations: 471.7 kB / 313.3 MB, free: 3.617 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002812/0.1501, allocations: 0.6773 MB / 314 MB, free: 2.938 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005515/0.1506, allocations: 0.8882 MB / 314.9 MB, free: 2.047 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001412/0.152, allocations: 2.227 MB / 317.1 MB, free: 15.81 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.152, allocations: 0 / 317.1 MB, free: 15.81 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.152, allocations: 3.938 kB / 317.1 MB, free: 15.81 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.772e-05/0.1521, allocations: 0 / 317.1 MB, free: 15.81 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.002672/0.1547, allocations: 2.853 MB / 320 MB, free: 12.87 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.092e-05/0.1548, allocations: 12.02 kB / 320 MB, free: 12.86 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003972/0.1552, allocations: 316.7 kB / 320.3 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/0.1566, allocations: 1.057 MB / 321.3 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/0.1567, allocations: 345 kB / 321.7 MB, free: 11.06 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001613/0.1569, allocations: 168.5 kB / 321.8 MB, free: 10.9 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.1581, allocations: 1.168 MB / 323 MB, free: 9.656 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.467e-05/0.1581, allocations: 4 kB / 323 MB, free: 9.652 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.744e-05/0.1582, allocations: 60 kB / 323.1 MB, free: 9.594 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.382e-05/0.1582, allocations: 41.08 kB / 323.1 MB, free: 9.555 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007707/0.159, allocations: 0.6799 MB / 323.8 MB, free: 8.828 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00459/0.1636, allocations: 3.124 MB / 326.9 MB, free: 5.664 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009677/0.1645, allocations: 0.9308 MB / 327.8 MB, free: 4.695 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004492/0.165, allocations: 491.4 kB / 328.3 MB, free: 4.176 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.955e-05/0.1651, allocations: 49.28 kB / 328.4 MB, free: 4.129 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005726/0.1657, allocations: 0.767 MB / 329.1 MB, free: 3.281 MB / 282.7 MB Notification: Performance of pre-optimization done (n=165): time 3.487e-06/0.1657, allocations: 0 / 329.1 MB, free: 3.281 MB / 282.7 MB Notification: Performance of matching and sorting (n=187): time 0.005124/0.1708, allocations: 4.486 MB / 333.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.06e-05/0.1709, allocations: 287 kB / 333.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.1719, allocations: 1.35 MB / 335.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.919e-05/0.1719, allocations: 61.7 kB / 335.3 MB, free: 12.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002894/0.1722, allocations: 0.6262 MB / 335.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002929/0.1725, allocations: 0.6544 MB / 336.6 MB, free: 11.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002839/0.1728, allocations: 303.3 kB / 336.9 MB, free: 11.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.691e-05/0.1729, allocations: 305.1 kB / 337.2 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000312/0.1732, allocations: 393.5 kB / 337.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004803/0.1737, allocations: 0.7936 MB / 338.4 MB, free: 9.414 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001435/0.1751, allocations: 1.694 MB / 340.1 MB, free: 7.496 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1751, allocations: 3.938 kB / 340.1 MB, free: 7.492 MB / 298.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.001049/0.1761, allocations: 1.285 MB / 341.4 MB, free: 6.102 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.656e-05/0.1762, allocations: 221.6 kB / 341.6 MB, free: 5.836 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.1762, allocations: 8.75 kB / 341.6 MB, free: 5.828 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.1762, allocations: 12 kB / 341.6 MB, free: 5.816 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008486/0.1771, allocations: 411.4 kB / 342 MB, free: 5.414 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.1771, allocations: 19.94 kB / 342 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000373/0.1775, allocations: 55.98 kB / 342.1 MB, free: 5.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.432e-05/0.1776, allocations: 59.97 kB / 342.1 MB, free: 5.281 MB / 298.7 MB Warning: Assuming fixed start value for the following 6 variables: reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) \"Normalized valve position (between 0 and 1)\" type: Real doubleActingCylinder.cushionHead.reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) \"Normalized valve position (between 0 and 1)\" type: Real doubleActingCylinder.cushionRod.reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) \"Normalized valve position (between 0 and 1)\" type: Real j1.volumeClosed.port[2].p:VARIABLE(flow=false min = 0.0 start = throttleValve.p_init unit = \"Pa\" fixed = true nominal = 1e5 stateSelect=StateSelect.prefer ) \"Pressure in the connection point\" type: Real [3] doubleActingCylinder.cushionRod.flowFraction:VARIABLE(fixed = true protected = true ) \"fraction of flow allowed by cushion\" type: Real doubleActingCylinder.cushionHead.flowFraction:VARIABLE(fixed = true protected = true ) \"fraction of flow allowed by cushion\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 12 (doubleActingCylinder.cylinderChamberRod.empty,doubleActingCylinder.cylinderChamberHead.empty,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionHead.cushionRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionHead.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionRod.cushionRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionRod.reliefValve.variableRestriction.data.zetaLaminarKnown,throttleValve.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004512/0.178, allocations: 464.1 kB / 342.6 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.1782, allocations: 187.8 kB / 342.8 MB, free: 4.586 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001371/0.1796, allocations: 1.511 MB / 344.3 MB, free: 2.965 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.1796, allocations: 20 kB / 344.3 MB, free: 2.945 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1796, allocations: 4 kB / 344.3 MB, free: 2.941 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.1796, allocations: 7.969 kB / 344.3 MB, free: 2.934 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003586/0.1832, allocations: 2.797 MB / 347.1 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.1832, allocations: 4 kB / 347.1 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/0.1842, allocations: 371.5 kB / 347.5 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.622e-05/0.1843, allocations: 29.03 kB / 347.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.823e-05/0.1844, allocations: 56.05 kB / 347.6 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006322/0.1851, allocations: 1.201 MB / 348.8 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.1851, allocations: 7.938 kB / 348.8 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002017/0.1871, allocations: 2.068 MB / 350.8 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004912/0.1876, allocations: 251 kB / 351.1 MB, free: 11.67 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/0.1878, allocations: 44 kB / 351.1 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005102/0.1883, allocations: 55.97 kB / 351.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001885/0.1885, allocations: 149.6 kB / 351.3 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.142e-05/0.1885, allocations: 55.97 kB / 351.4 MB, free: 11.37 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000752/0.1893, allocations: 0.7054 MB / 352.1 MB, free: 10.67 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1893, allocations: 4 kB / 352.1 MB, free: 10.66 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001248/0.1905, allocations: 0.5115 MB / 352.6 MB, free: 10.15 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 11 (reliefValve.valvePosition,doubleActingCylinder.cushionHead.reliefValve.valvePosition,doubleActingCylinder.cushionHead.flowFraction,doubleActingCylinder.cushionRod.reliefValve.valvePosition,doubleActingCylinder.cushionRod.flowFraction,doubleActingCylinder.damper.s_rel,doubleActingCylinder.damper.v_rel,doubleActingCylinder.leakage_Head2Env.port_b.p,doubleActingCylinder.leakage_Rod2Env.port_b.p,throttleValve.port_b.p,j1.volumeClosed.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (207): * Single equations (assignments): 198 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001396/0.1919, allocations: 0.6079 MB / 353.2 MB, free: 9.809 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.1933, allocations: 1.649 MB / 354.9 MB, free: 7.961 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.243e-05/0.1933, allocations: 25.5 kB / 354.9 MB, free: 7.938 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009146/0.1943, allocations: 1.27 MB / 356.1 MB, free: 6.508 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.1958, allocations: 0.6285 MB / 356.8 MB, free: 5.934 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005261/0.2011, allocations: 3.956 MB / 360.7 MB, free: 1.828 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.2015, allocations: 432.9 kB / 361.2 MB, free: 1.379 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0009548/0.2024, allocations: 335.6 kB / 361.5 MB, free: 1.047 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/0.2036, allocations: 0.6005 MB / 362.1 MB, free: 448 kB / 314.7 MB Notification: Performance of SimCode: time 7.22e-07/0.2036, allocations: 0 / 362.1 MB, free: 448 kB / 314.7 MB Notification: Performance of Templates: time 0.04787/0.2515, allocations: 36.35 MB / 398.4 MB, free: 12.62 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.makefile [Timeout 660] (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.sim & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple -abortSlowSimulation -alarm=240 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.332052567973733]