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.0009772/0.0009772, allocations: 77.95 kB / 20.66 MB, free: 3.832 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.001531/0.001531, allocations: 169 kB / 24.06 MB, free: 448 kB / 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.98/0.98, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.03493/0.03493, allocations: 8.71 MB / 269.8 MB, free: 4.375 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.192e-06/1.192e-06, allocations: 0 / 342.1 MB, free: 8.852 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.113e-05/1.232e-05, allocations: 6.312 kB / 342.1 MB, free: 8.844 MB / 314.7 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple): time 0.006676/0.006688, allocations: 9.158 MB / 351.2 MB, free: 15.64 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005793/0.01248, allocations: 4.815 MB / 356 MB, free: 10.81 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006344/0.01312, allocations: 43.69 kB / 356.1 MB, free: 10.77 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007846/0.0139, allocations: 0.6133 MB / 356.7 MB, free: 10.15 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00151/0.01541, allocations: 1.301 MB / 358 MB, free: 8.84 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002098/0.01751, allocations: 1.559 MB / 359.6 MB, free: 7.277 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00212/0.01963, allocations: 3.596 MB / 363.2 MB, free: 3.668 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005293/0.02016, allocations: 471.1 kB / 363.6 MB, free: 3.18 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001292/0.02145, allocations: 1.773 MB / 365.4 MB, free: 1.402 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001151/0.0226, allocations: 1.134 MB / 366.5 MB, free: 272 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002107/0.02281, allocations: 244 kB / 366.8 MB, free: 28 kB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005136/0.02333, allocations: 475.8 kB / 367.2 MB, free: 15.56 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003845/0.02371, allocations: 0.6772 MB / 367.9 MB, free: 14.88 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000609/0.02432, allocations: 0.8882 MB / 368.8 MB, free: 13.99 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001597/0.02592, allocations: 2.223 MB / 371 MB, free: 11.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.02592, allocations: 0 / 371 MB, free: 11.76 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.02592, allocations: 4 kB / 371 MB, free: 11.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.528e-05/0.02594, allocations: 3.938 kB / 371 MB, free: 11.75 MB / 346.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.00286/0.0288, allocations: 3.054 MB / 374.1 MB, free: 8.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.86e-05/0.02882, allocations: 8.031 kB / 374.1 MB, free: 8.582 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004522/0.02928, allocations: 427.1 kB / 374.5 MB, free: 8.164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001345/0.03062, allocations: 1.446 MB / 375.9 MB, free: 6.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001719/0.03079, allocations: 341 kB / 376.3 MB, free: 6.297 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001692/0.03096, allocations: 175.9 kB / 376.5 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.03211, allocations: 1.109 MB / 377.6 MB, free: 4.945 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.083e-05/0.03214, allocations: 8 kB / 377.6 MB, free: 4.938 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.46e-05/0.03223, allocations: 67.94 kB / 377.6 MB, free: 4.871 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.03225, allocations: 40 kB / 377.7 MB, free: 4.832 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008657/0.03312, allocations: 0.7655 MB / 378.4 MB, free: 4.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005007/0.03813, allocations: 4.143 MB / 382.6 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.0392, allocations: 1.028 MB / 383.6 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005282/0.03973, allocations: 0.51 MB / 384.1 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.098e-05/0.03982, allocations: 45.23 kB / 384.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006191/0.04044, allocations: 0.7688 MB / 384.9 MB, free: 13.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=165): time 3.045e-06/0.04044, allocations: 0 / 384.9 MB, free: 13.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=187): time 0.005292/0.04573, allocations: 4.612 MB / 389.5 MB, free: 8.352 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.04583, allocations: 283 kB / 389.8 MB, free: 8.016 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001129/0.04696, allocations: 1.46 MB / 391.3 MB, free: 6.543 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.744e-05/0.04704, allocations: 57.7 kB / 391.3 MB, free: 6.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005818/0.04762, allocations: 1.022 MB / 392.4 MB, free: 5.445 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003524/0.04797, allocations: 0.6583 MB / 393 MB, free: 4.781 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003334/0.04831, allocations: 329 kB / 393.3 MB, free: 4.449 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.04842, allocations: 476.8 kB / 393.8 MB, free: 3.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006224/0.04904, allocations: 425.4 kB / 394.2 MB, free: 3.516 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005776/0.04962, allocations: 0.9128 MB / 395.1 MB, free: 2.402 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.051, allocations: 1.798 MB / 396.9 MB, free: 356 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.051, allocations: 4 kB / 396.9 MB, free: 352 kB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.001431/0.05244, allocations: 1.636 MB / 398.6 MB, free: 14.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.18e-05/0.05252, allocations: 225.6 kB / 398.8 MB, free: 14.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.05253, allocations: 12.03 kB / 398.8 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.05254, allocations: 12 kB / 398.8 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008905/0.05343, allocations: 419.4 kB / 399.2 MB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.05345, allocations: 15.94 kB / 399.2 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003921/0.05384, allocations: 55.98 kB / 399.3 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.929e-05/0.05392, allocations: 63.97 kB / 399.4 MB, free: 13.76 MB / 378.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.0004868/0.0544, allocations: 0.5139 MB / 399.9 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002621/0.05467, allocations: 286.5 kB / 400.2 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/0.05659, allocations: 1.756 MB / 401.9 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.0566, allocations: 20 kB / 401.9 MB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.0566, allocations: 0 / 401.9 MB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-05/0.05662, allocations: 15.95 kB / 401.9 MB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003498/0.06011, allocations: 3.528 MB / 405.5 MB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.06012, allocations: 4 kB / 405.5 MB, free: 7.262 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008331/0.06095, allocations: 375.9 kB / 405.8 MB, free: 6.895 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.995e-05/0.06104, allocations: 43.66 kB / 405.9 MB, free: 6.848 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-05/0.06112, allocations: 55.97 kB / 405.9 MB, free: 6.793 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006884/0.06181, allocations: 1.753 MB / 407.7 MB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.06181, allocations: 4 kB / 407.7 MB, free: 4.922 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002311/0.06412, allocations: 2.501 MB / 410.2 MB, free: 2.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000437/0.06456, allocations: 390.3 kB / 410.6 MB, free: 1.797 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001527/0.06471, allocations: 44 kB / 410.6 MB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003987/0.06511, allocations: 51.97 kB / 410.7 MB, free: 1.703 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.06527, allocations: 157.6 kB / 410.8 MB, free: 1.551 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.699e-05/0.06534, allocations: 63.97 kB / 410.9 MB, free: 1.488 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006239/0.06597, allocations: 0.8225 MB / 411.7 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.06597, allocations: 0 / 411.7 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007926/0.06676, allocations: 0.5115 MB / 412.2 MB, free: 168 kB / 378.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.0009777/0.06774, allocations: 0.4948 MB / 412.7 MB, free: 15.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.06898, allocations: 1.734 MB / 414.5 MB, free: 13.85 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.06898, allocations: 0 / 414.5 MB, free: 13.85 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001244/0.07023, allocations: 1.362 MB / 415.8 MB, free: 12.33 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.07159, allocations: 0.6447 MB / 416.5 MB, free: 11.71 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004113/0.0757, allocations: 4.089 MB / 420.5 MB, free: 7.449 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.07604, allocations: 444.9 kB / 421 MB, free: 6.988 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007413/0.07678, allocations: 339.6 kB / 421.3 MB, free: 6.652 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001318/0.0781, allocations: 0.7047 MB / 422 MB, free: 5.945 MB / 394.7 MB Notification: Performance of SimCode: time 5.61e-07/0.0781, allocations: 0 / 422 MB, free: 5.945 MB / 394.7 MB Notification: Performance of Templates: time 0.1556/0.2337, allocations: 36.93 MB / 458.9 MB, free: 116.3 MB / 410.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.794032639823854]