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.0008505/0.0008505, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.0009151/0.0009151, allocations: 169 kB / 23.02 MB, free: 1.543 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.9349/0.9349, allocations: 177.1 MB / 203.4 MB, free: 5.648 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.03477/0.03477, allocations: 8.718 MB / 268.7 MB, free: 4.547 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 2.945e-06/2.945e-06, allocations: 3.984 kB / 340.8 MB, free: 8.086 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.382e-05/3.677e-05, allocations: 6.312 kB / 340.8 MB, free: 8.078 MB / 266.7 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple): time 0.01022/0.01025, allocations: 9.311 MB / 350.2 MB, free: 14.73 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.009975/0.02023, allocations: 4.854 MB / 355 MB, free: 9.859 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00252/0.02275, allocations: 39.69 kB / 355.1 MB, free: 9.82 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00205/0.0248, allocations: 0.6094 MB / 355.7 MB, free: 9.207 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003416/0.02821, allocations: 1.305 MB / 357 MB, free: 7.895 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002864/0.03108, allocations: 1.555 MB / 358.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003816/0.03489, allocations: 3.592 MB / 362.1 MB, free: 2.73 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008677/0.03576, allocations: 483 kB / 362.6 MB, free: 2.227 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002625/0.03839, allocations: 1.769 MB / 364.4 MB, free: 464 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001736/0.04012, allocations: 1.126 MB / 365.5 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000566/0.04069, allocations: 251.9 kB / 365.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009388/0.04163, allocations: 475.6 kB / 366.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005228/0.04215, allocations: 0.6733 MB / 366.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001241/0.04339, allocations: 0.8922 MB / 367.8 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002994/0.04639, allocations: 2.223 MB / 370 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.04639, allocations: 0 / 370 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.04639, allocations: 0 / 370 MB, free: 10.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001058/0.0465, allocations: 0 / 370 MB, free: 10.81 MB / 298.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.003931/0.05043, allocations: 3.043 MB / 373 MB, free: 7.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.05047, allocations: 8.031 kB / 373 MB, free: 7.652 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006601/0.05113, allocations: 435.1 kB / 373.5 MB, free: 7.227 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001793/0.05293, allocations: 1.485 MB / 374.9 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002078/0.05313, allocations: 341 kB / 375.3 MB, free: 5.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001755/0.05331, allocations: 164 kB / 375.4 MB, free: 5.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001822/0.05513, allocations: 1.238 MB / 376.7 MB, free: 3.852 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.849e-05/0.05517, allocations: 0 / 376.7 MB, free: 3.852 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.05527, allocations: 67.98 kB / 376.7 MB, free: 3.785 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.614e-05/0.0553, allocations: 36 kB / 376.8 MB, free: 3.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001648/0.05695, allocations: 0.9105 MB / 377.7 MB, free: 2.797 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006905/0.06385, allocations: 4.443 MB / 382.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001625/0.06548, allocations: 1.099 MB / 383.2 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007358/0.06621, allocations: 0.5693 MB / 383.8 MB, free: 12.53 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001247/0.06634, allocations: 49.28 kB / 383.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001113/0.06745, allocations: 0.8119 MB / 384.7 MB, free: 11.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=165): time 5.05e-06/0.06746, allocations: 0 / 384.7 MB, free: 11.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=187): time 0.007083/0.07454, allocations: 5.294 MB / 389.9 MB, free: 5.961 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.795e-05/0.07464, allocations: 287 kB / 390.2 MB, free: 5.617 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001939/0.07658, allocations: 1.504 MB / 391.7 MB, free: 4.102 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.494e-05/0.07667, allocations: 57.7 kB / 391.8 MB, free: 4.039 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005619/0.07723, allocations: 0.9832 MB / 392.8 MB, free: 3.043 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003849/0.07762, allocations: 0.6544 MB / 393.4 MB, free: 2.383 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00035/0.07797, allocations: 325.1 kB / 393.7 MB, free: 2.059 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.764e-05/0.07806, allocations: 484.7 kB / 394.2 MB, free: 1.582 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006017/0.07867, allocations: 497.4 kB / 394.7 MB, free: 1.047 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008016/0.07947, allocations: 0.9675 MB / 395.7 MB, free: 15.88 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001978/0.08145, allocations: 1.947 MB / 397.6 MB, free: 13.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.08145, allocations: 11.94 kB / 397.6 MB, free: 13.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.002413/0.08387, allocations: 1.761 MB / 399.4 MB, free: 11.8 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.629e-05/0.08396, allocations: 229.6 kB / 399.6 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.08398, allocations: 4 kB / 399.6 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.851e-05/0.08401, allocations: 16 kB / 399.6 MB, free: 11.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009897/0.085, allocations: 419.7 kB / 400 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.537e-05/0.08502, allocations: 15.98 kB / 400.1 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006205/0.08564, allocations: 59.94 kB / 400.1 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.835e-05/0.08574, allocations: 79.97 kB / 400.2 MB, free: 10.94 MB / 330.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 (throttleValve.data.zetaLaminarKnown,doubleActingCylinder.cushionRod.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionRod.cushionRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionHead.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionHead.cushionRestriction.data.zetaLaminarKnown,reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cylinderChamberRod.empty,doubleActingCylinder.cylinderChamberHead.empty,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2) * 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.000673/0.08641, allocations: 0.5115 MB / 400.7 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003373/0.08675, allocations: 282.6 kB / 401 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002237/0.08899, allocations: 1.885 MB / 402.9 MB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.089, allocations: 24 kB / 402.9 MB, free: 8.078 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.08901, allocations: 0 / 402.9 MB, free: 8.078 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.08902, allocations: 11.95 kB / 402.9 MB, free: 8.066 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005036/0.09406, allocations: 3.918 MB / 406.8 MB, free: 3.922 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.09406, allocations: 8 kB / 406.8 MB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009001/0.09496, allocations: 380 kB / 407.2 MB, free: 3.543 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001483/0.09511, allocations: 35.61 kB / 407.2 MB, free: 3.504 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/0.09523, allocations: 55.98 kB / 407.3 MB, free: 3.449 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008334/0.09606, allocations: 1.779 MB / 409.1 MB, free: 1.543 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.09606, allocations: 7.938 kB / 409.1 MB, free: 1.535 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1252/0.2213, allocations: 2.672 MB / 411.7 MB, free: 70.54 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000878/0.2222, allocations: 401.7 kB / 412.1 MB, free: 70.54 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002512/0.2224, allocations: 44.36 kB / 412.2 MB, free: 70.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004772/0.2229, allocations: 58.66 kB / 412.2 MB, free: 70.54 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/0.2231, allocations: 156.1 kB / 412.4 MB, free: 70.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.773e-05/0.2232, allocations: 71.92 kB / 412.5 MB, free: 70.54 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00099/0.2242, allocations: 0.9042 MB / 413.4 MB, free: 70.39 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2242, allocations: 0 / 413.4 MB, free: 70.39 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001083/0.2253, allocations: 0.5117 MB / 413.9 MB, free: 70.39 MB / 330.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.001005/0.2263, allocations: 0.502 MB / 414.4 MB, free: 70.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001823/0.2281, allocations: 1.856 MB / 416.2 MB, free: 69.21 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.2281, allocations: 2.406 kB / 416.2 MB, free: 69.21 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.2292, allocations: 1.421 MB / 417.7 MB, free: 68.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001703/0.2309, allocations: 0.6315 MB / 418.3 MB, free: 68.21 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005245/0.2362, allocations: 4.126 MB / 422.4 MB, free: 66.17 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.2365, allocations: 447.1 kB / 422.9 MB, free: 66.06 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001055/0.2375, allocations: 372.2 kB / 423.2 MB, free: 65.96 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003813/0.2379, allocations: 195.8 kB / 423.4 MB, free: 65.95 MB / 330.7 MB Notification: Performance of SimCode: time 2.014e-06/0.2379, allocations: 4 kB / 423.4 MB, free: 65.95 MB / 330.7 MB Notification: Performance of Templates: time 0.03503/0.2729, allocations: 35.24 MB / 458.7 MB, free: 34.41 MB / 330.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.7153734168969095]