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.001194/0.001194, allocations: 93.06 kB / 19.65 MB, free: 272 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.001682/0.001682, allocations: 165 kB / 23.02 MB, free: 1.547 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.9397/0.9397, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.0348/0.0348, allocations: 8.712 MB / 268.7 MB, free: 4.531 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.294e-06/2.294e-06, allocations: 0 / 340.8 MB, free: 8.066 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.741e-05/2.971e-05, allocations: 9.812 kB / 340.9 MB, free: 8.059 MB / 266.7 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple): time 0.01016/0.01019, allocations: 9.304 MB / 350.2 MB, free: 14.71 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.009774/0.01997, allocations: 4.854 MB / 355 MB, free: 9.84 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00191/0.02188, allocations: 39.69 kB / 355.1 MB, free: 9.801 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.02337, allocations: 0.6132 MB / 355.7 MB, free: 9.184 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003475/0.02684, allocations: 1.289 MB / 357 MB, free: 7.887 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004407/0.03125, allocations: 1.567 MB / 358.5 MB, free: 6.316 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004219/0.03547, allocations: 3.588 MB / 362.1 MB, free: 2.715 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008306/0.0363, allocations: 483.1 kB / 362.6 MB, free: 2.211 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00254/0.03884, allocations: 1.769 MB / 364.4 MB, free: 448 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001472/0.04031, allocations: 1.122 MB / 365.5 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004257/0.04074, allocations: 248 kB / 365.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000839/0.04158, allocations: 475.6 kB / 366.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004613/0.04204, allocations: 0.6734 MB / 366.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009611/0.043, allocations: 0.9039 MB / 367.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002367/0.04537, allocations: 2.227 MB / 370 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.04537, allocations: 0 / 370 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.04537, allocations: 0 / 370 MB, free: 10.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.047e-05/0.04542, allocations: 0 / 370 MB, free: 10.79 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.003412/0.04884, allocations: 3.05 MB / 373 MB, free: 7.633 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.04888, allocations: 12.03 kB / 373 MB, free: 7.621 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005971/0.04948, allocations: 427.1 kB / 373.5 MB, free: 7.203 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001754/0.05124, allocations: 1.492 MB / 375 MB, free: 5.672 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002316/0.05147, allocations: 345 kB / 375.3 MB, free: 5.285 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001838/0.05165, allocations: 168 kB / 375.5 MB, free: 5.121 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001707/0.05336, allocations: 1.234 MB / 376.7 MB, free: 3.816 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.37e-05/0.05339, allocations: 4 kB / 376.7 MB, free: 3.812 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.0535, allocations: 71.97 kB / 376.8 MB, free: 3.742 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.789e-05/0.05353, allocations: 36 kB / 376.8 MB, free: 3.707 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.05485, allocations: 0.9066 MB / 377.7 MB, free: 2.758 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006156/0.06101, allocations: 4.447 MB / 382.2 MB, free: 14.23 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.06253, allocations: 1.107 MB / 383.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007228/0.06325, allocations: 0.5615 MB / 383.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001295/0.06338, allocations: 49.28 kB / 383.9 MB, free: 12.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008503/0.06423, allocations: 0.8119 MB / 384.7 MB, free: 11.53 MB / 314.7 MB Notification: Performance of pre-optimization done (n=165): time 3.797e-06/0.06424, allocations: 0 / 384.7 MB, free: 11.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=187): time 0.007681/0.07192, allocations: 5.293 MB / 390 MB, free: 5.914 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.07205, allocations: 283 kB / 390.3 MB, free: 5.574 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001828/0.07387, allocations: 1.5 MB / 391.8 MB, free: 4.062 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.07398, allocations: 61.7 kB / 391.8 MB, free: 3.996 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006213/0.0746, allocations: 0.9871 MB / 392.8 MB, free: 2.996 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004617/0.07506, allocations: 0.6505 MB / 393.4 MB, free: 2.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003809/0.07544, allocations: 325.1 kB / 393.8 MB, free: 2.016 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.07557, allocations: 484.7 kB / 394.2 MB, free: 1.539 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006431/0.07622, allocations: 497.4 kB / 394.7 MB, free: 1.004 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000896/0.07711, allocations: 0.9715 MB / 395.7 MB, free: 15.83 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002066/0.07918, allocations: 1.947 MB / 397.6 MB, free: 13.63 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.086e-06/0.07919, allocations: 0 / 397.6 MB, free: 13.63 MB / 330.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.00223/0.08142, allocations: 1.773 MB / 399.4 MB, free: 11.75 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.956e-05/0.08152, allocations: 221.6 kB / 399.6 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.08153, allocations: 8 kB / 399.6 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.164e-05/0.08156, allocations: 15.94 kB / 399.7 MB, free: 11.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.08256, allocations: 415.4 kB / 400.1 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.274e-05/0.08259, allocations: 23.92 kB / 400.1 MB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007077/0.0833, allocations: 67.92 kB / 400.2 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.965e-05/0.08339, allocations: 71.97 kB / 400.2 MB, free: 10.89 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.001028/0.08442, allocations: 0.4918 MB / 400.7 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003628/0.08479, allocations: 286.6 kB / 401 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002334/0.08712, allocations: 1.889 MB / 402.9 MB, free: 8.062 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.5e-05/0.08714, allocations: 20 kB / 402.9 MB, free: 8.043 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.08714, allocations: 0 / 402.9 MB, free: 8.043 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/0.08716, allocations: 7.969 kB / 402.9 MB, free: 8.035 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005307/0.09246, allocations: 3.941 MB / 406.9 MB, free: 3.867 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.09247, allocations: 4 kB / 406.9 MB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009225/0.09339, allocations: 380 kB / 407.2 MB, free: 3.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001774/0.09357, allocations: 43.55 kB / 407.3 MB, free: 3.445 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/0.0937, allocations: 51.98 kB / 407.3 MB, free: 3.395 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001167/0.09486, allocations: 1.772 MB / 409.1 MB, free: 1.496 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.09487, allocations: 4 kB / 409.1 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1259/0.2207, allocations: 2.669 MB / 411.8 MB, free: 70.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007909/0.2215, allocations: 400.5 kB / 412.2 MB, free: 70.66 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000264/0.2218, allocations: 48.67 kB / 412.2 MB, free: 70.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005269/0.2223, allocations: 55.27 kB / 412.3 MB, free: 70.66 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/0.2225, allocations: 158.1 kB / 412.4 MB, free: 70.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-05/0.2226, allocations: 72.36 kB / 412.5 MB, free: 70.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001064/0.2236, allocations: 0.9018 MB / 413.4 MB, free: 70.51 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2236, allocations: 0 / 413.4 MB, free: 70.51 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001343/0.225, allocations: 0.515 MB / 413.9 MB, free: 70.51 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.001078/0.2261, allocations: 0.4985 MB / 414.4 MB, free: 70.39 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002206/0.2283, allocations: 1.86 MB / 416.3 MB, free: 69.34 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/0.2283, allocations: 6.188 kB / 416.3 MB, free: 69.34 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001276/0.2295, allocations: 1.42 MB / 417.7 MB, free: 68.39 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002026/0.2316, allocations: 0.6343 MB / 418.3 MB, free: 68.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005999/0.2376, allocations: 4.141 MB / 422.5 MB, free: 66.29 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.2379, allocations: 445.3 kB / 422.9 MB, free: 66.18 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00107/0.239, allocations: 366.6 kB / 423.2 MB, free: 66.08 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003822/0.2394, allocations: 193.8 kB / 423.4 MB, free: 66.07 MB / 330.7 MB Notification: Performance of SimCode: time 2.034e-06/0.2394, allocations: 0 / 423.4 MB, free: 66.07 MB / 330.7 MB Notification: Performance of Templates: time 0.03474/0.2741, allocations: 32.92 MB / 456.4 MB, free: 36.73 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.8855138458311558]