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.001408/0.001408, allocations: 84.53 kB / 19.93 MB, free: 4.605 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.001384/0.001384, allocations: 177.9 kB / 23.21 MB, free: 1.324 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.8972/0.8972, allocations: 177.1 MB / 203.5 MB, free: 5.734 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.03388/0.03388, allocations: 8.706 MB / 268.7 MB, free: 4.727 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.455e-06/2.455e-06, allocations: 0 / 395.4 MB, free: 1.535 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.44e-05/2.685e-05, allocations: 2.281 kB / 395.4 MB, free: 1.531 MB / 314.7 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple): time 0.009477/0.009504, allocations: 8.322 MB / 403.7 MB, free: 9.164 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.008461/0.01797, allocations: 4.721 MB / 408.5 MB, free: 4.43 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/0.01907, allocations: 39.69 kB / 408.5 MB, free: 4.391 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001078/0.02014, allocations: 0.6211 MB / 409.1 MB, free: 3.766 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002434/0.02258, allocations: 1.289 MB / 410.4 MB, free: 2.469 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003158/0.02574, allocations: 1.569 MB / 412 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1446/0.1703, allocations: 3.582 MB / 415.6 MB, free: 15.72 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009196/0.1712, allocations: 479.2 kB / 416 MB, free: 15.63 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002886/0.1741, allocations: 1.757 MB / 417.8 MB, free: 15.47 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001846/0.176, allocations: 1.081 MB / 418.9 MB, free: 15.35 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003968/0.1764, allocations: 247.3 kB / 419.1 MB, free: 15.35 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009035/0.1773, allocations: 481.2 kB / 419.6 MB, free: 15.35 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004514/0.1777, allocations: 0.6687 MB / 420.3 MB, free: 15.23 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.1787, allocations: 0.8894 MB / 421.1 MB, free: 15.07 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003606/0.1823, allocations: 3.62 MB / 424.8 MB, free: 13.8 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.1823, allocations: 1 kB / 424.8 MB, free: 13.8 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1823, allocations: 0 / 424.8 MB, free: 13.8 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.493e-05/0.1824, allocations: 0 / 424.8 MB, free: 13.8 MB / 330.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.003892/0.1863, allocations: 2.91 MB / 427.7 MB, free: 11.86 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.1863, allocations: 9.031 kB / 427.7 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000546/0.1869, allocations: 300 kB / 428 MB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001837/0.1887, allocations: 1.539 MB / 429.5 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000172/0.1889, allocations: 342.6 kB / 429.8 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001883/0.1891, allocations: 165.7 kB / 430 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002218/0.1913, allocations: 1.849 MB / 431.9 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.504e-05/0.1913, allocations: 1.25 kB / 431.9 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.1914, allocations: 63.22 kB / 431.9 MB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.958e-05/0.1915, allocations: 38.28 kB / 432 MB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002048/0.1935, allocations: 1.825 MB / 433.8 MB, free: 8.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006917/0.2004, allocations: 4.981 MB / 438.8 MB, free: 5.809 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00172/0.2022, allocations: 1.639 MB / 440.4 MB, free: 4.84 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008472/0.203, allocations: 0.871 MB / 441.3 MB, free: 4.277 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001156/0.2031, allocations: 40.97 kB / 441.3 MB, free: 4.262 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000937/0.2041, allocations: 1.093 MB / 442.4 MB, free: 3.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=165): time 4.819e-06/0.2041, allocations: 2.719 kB / 442.4 MB, free: 3.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=187): time 0.009021/0.2131, allocations: 7.096 MB / 449.5 MB, free: 13.03 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.2132, allocations: 287.1 kB / 449.8 MB, free: 12.69 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002183/0.2154, allocations: 1.927 MB / 451.7 MB, free: 10.76 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.2155, allocations: 65.7 kB / 451.8 MB, free: 10.69 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005121/0.216, allocations: 0.919 MB / 452.7 MB, free: 9.766 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003765/0.2164, allocations: 0.6447 MB / 453.3 MB, free: 9.129 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003485/0.2167, allocations: 315.5 kB / 453.7 MB, free: 8.812 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.343e-05/0.2168, allocations: 305.1 kB / 453.9 MB, free: 8.512 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008925/0.2177, allocations: 0.8021 MB / 454.8 MB, free: 7.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/0.2188, allocations: 1.218 MB / 456 MB, free: 6.281 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006853/0.2256, allocations: 4.39 MB / 460.4 MB, free: 1.664 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-05/0.2256, allocations: 7.938 kB / 460.4 MB, free: 1.656 MB / 346.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.002904/0.2285, allocations: 2.328 MB / 462.7 MB, free: 15.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.744e-05/0.2286, allocations: 227.8 kB / 462.9 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.2286, allocations: 4 kB / 462.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.728e-05/0.2287, allocations: 16 kB / 462.9 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009486/0.2296, allocations: 424 kB / 463.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.165e-05/0.2296, allocations: 17.69 kB / 463.4 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008676/0.2305, allocations: 67.92 kB / 463.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001/0.2306, allocations: 75.97 kB / 463.5 MB, free: 14.42 MB / 362.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 = j1.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.001144/0.2318, allocations: 0.8335 MB / 464.3 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002943/0.2321, allocations: 226.5 kB / 464.6 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002837/0.2349, allocations: 2.488 MB / 467.1 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.2349, allocations: 20 kB / 467.1 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.2349, allocations: 0.7969 kB / 467.1 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.2349, allocations: 11.95 kB / 467.1 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005654/0.2406, allocations: 4.582 MB / 471.7 MB, free: 6.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.2406, allocations: 4.5 kB / 471.7 MB, free: 6.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009163/0.2415, allocations: 388 kB / 472 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001432/0.2416, allocations: 44.02 kB / 472.1 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.2418, allocations: 55.92 kB / 472.1 MB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007891/0.2425, allocations: 1.306 MB / 473.5 MB, free: 4.156 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.2425, allocations: 15.17 kB / 473.5 MB, free: 4.145 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003777/0.2463, allocations: 3.606 MB / 477.1 MB, free: 336 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008741/0.2472, allocations: 410.4 kB / 477.5 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002062/0.2474, allocations: 47.98 kB / 477.5 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004885/0.2479, allocations: 59.97 kB / 477.6 MB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.2481, allocations: 153.1 kB / 477.7 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-05/0.2482, allocations: 74 kB / 477.8 MB, free: 15.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001505/0.2497, allocations: 1.323 MB / 479.1 MB, free: 14.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2497, allocations: 4 kB / 479.1 MB, free: 14.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001345/0.251, allocations: 0.5115 MB / 479.6 MB, free: 13.78 MB / 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.001206/0.2522, allocations: 0.5509 MB / 480.2 MB, free: 13.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002496/0.2547, allocations: 2.414 MB / 482.6 MB, free: 10.85 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.2547, allocations: 4 kB / 482.6 MB, free: 10.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001451/0.2562, allocations: 1.661 MB / 484.3 MB, free: 9.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/0.258, allocations: 0.6087 MB / 484.9 MB, free: 8.492 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00605/0.2641, allocations: 4.713 MB / 489.6 MB, free: 3.668 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008493/0.2649, allocations: 1.017 MB / 490.6 MB, free: 2.609 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007265/0.2656, allocations: 204.4 kB / 490.8 MB, free: 2.406 MB / 378.7 MB Notification: Performance of SimCode: time 1.433e-06/0.2656, allocations: 0 / 490.8 MB, free: 2.406 MB / 378.7 MB Notification: Performance of Templates: time 0.03949/0.3051, allocations: 39.35 MB / 0.5177 GB, free: 11.28 MB / 426.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 > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.920522931963205]