Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo", uses=false) Using package OpenHydraulics with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2") translateModel(OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 102.8 kB / 16.24 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 188.6 kB / 17.17 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.269/1.269, allocations: 205.1 MB / 223 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05378/0.05378, allocations: 11.83 MB / 282.2 MB, free: 320 kB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenHydraulics requested package Modelica of version 3.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 71.91 kB / 342.4 MB, free: 3.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2067/0.208, allocations: 49.21 MB / 391.6 MB, free: 49.05 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2): time 0.008556/0.2166, allocations: 9.557 MB / 401.2 MB, free: 42.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006655/0.2233, allocations: 4.452 MB / 405.7 MB, free: 38.74 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001168/0.2246, allocations: 30.19 kB / 405.7 MB, free: 38.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009591/0.2255, allocations: 0.5824 MB / 406.3 MB, free: 38.31 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001825/0.2274, allocations: 1.091 MB / 407.4 MB, free: 37.39 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002482/0.2299, allocations: 1.393 MB / 408.8 MB, free: 36.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003037/0.2329, allocations: 3.338 MB / 412.1 MB, free: 34.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00104/0.234, allocations: 0.8495 MB / 412.9 MB, free: 33.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001332/0.2353, allocations: 1.123 MB / 414.1 MB, free: 32.76 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009867/0.2363, allocations: 1.288 MB / 415.3 MB, free: 31.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002548/0.2366, allocations: 244 kB / 415.6 MB, free: 31.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007727/0.2373, allocations: 467.8 kB / 416 MB, free: 30.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003527/0.2377, allocations: 0.6306 MB / 416.7 MB, free: 30.14 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008086/0.2385, allocations: 1.33 MB / 418 MB, free: 28.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002287/0.2408, allocations: 3.439 MB / 421.4 MB, free: 25.35 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2408, allocations: 0 / 421.4 MB, free: 25.35 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2408, allocations: 7.938 kB / 421.5 MB, free: 25.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.288e-05/0.2409, allocations: 0 / 421.5 MB, free: 25.34 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.003619/0.2445, allocations: 2.845 MB / 424.3 MB, free: 22.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.2445, allocations: 11.89 kB / 424.3 MB, free: 22.38 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004164/0.245, allocations: 269.8 kB / 424.6 MB, free: 22.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001603/0.2466, allocations: 1.476 MB / 426 MB, free: 20.58 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001764/0.2468, allocations: 238 kB / 426.3 MB, free: 20.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001915/0.247, allocations: 159.9 kB / 426.4 MB, free: 20.17 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002395/0.2494, allocations: 1.642 MB / 428.1 MB, free: 18.51 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.578e-05/0.2494, allocations: 4 kB / 428.1 MB, free: 18.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/0.2496, allocations: 68 kB / 428.1 MB, free: 18.44 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/0.2496, allocations: 36 kB / 428.2 MB, free: 18.4 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002501/0.2521, allocations: 1.64 MB / 429.8 MB, free: 16.76 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008126/0.2602, allocations: 9.155 MB / 439 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002351/0.2626, allocations: 1.801 MB / 440.8 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/0.2638, allocations: 0.7473 MB / 441.5 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001572/0.264, allocations: 122.4 kB / 441.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00123/0.2652, allocations: 0.817 MB / 442.5 MB, free: 3.117 MB / 318.1 MB Notification: Performance of pre-optimization done (n=159): time 4.668e-06/0.2652, allocations: 3.984 kB / 442.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of matching and sorting (n=174): time 0.01153/0.2767, allocations: 6.464 MB / 448.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.2769, allocations: 283 kB / 449.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00263/0.2795, allocations: 1.984 MB / 451.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.973e-05/0.2797, allocations: 61.69 kB / 451.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006285/0.2803, allocations: 0.8678 MB / 452.1 MB, free: 9.051 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003973/0.2807, allocations: 0.5774 MB / 452.7 MB, free: 8.465 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004526/0.2812, allocations: 303.4 kB / 453 MB, free: 8.164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.356e-05/0.2812, allocations: 313 kB / 453.3 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.2824, allocations: 0.574 MB / 453.9 MB, free: 7.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.2837, allocations: 0.8713 MB / 454.7 MB, free: 6.316 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01122/0.2949, allocations: 4.27 MB / 459 MB, free: 1.766 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.295, allocations: 0 / 459 MB, free: 1.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003729/0.2987, allocations: 2.182 MB / 461.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/0.2989, allocations: 225.6 kB / 461.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.2989, allocations: 12.38 kB / 461.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001454/0.299, allocations: 52.78 kB / 461.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/0.3007, allocations: 391.4 kB / 461.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/0.3021, allocations: 1.763 MB / 463.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001174/0.3033, allocations: 76.17 kB / 463.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.3034, allocations: 71.98 kB / 463.8 MB, free: 12.73 MB / 350.1 MB Warning: Assuming fixed start value for the following 8 variables: 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 doubleActingCylinder.damper.v_rel:VARIABLE(start = 0.0 unit = "m/s" fixed = true stateSelect=StateSelect.prefer ) "Relative velocity (= der(s_rel))" type: Real doubleActingCylinder.leakage_Head2Env.port_b.p:VARIABLE(flow=false min = 0.0 start = doubleActingCylinder.cushionHead.reliefValve.variableRestriction.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) "Normalized valve position (between 0 and 1)" type: Real position.w:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "If exact=false, Angular velocity of flange with respect to support else dummy" type: Real 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: 28 * Number of states: 0 () * Number of discrete variables: 11 (reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionRod.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionRod.cushionRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionHead.reliefValve.variableRestriction.data.zetaLaminarKnown,doubleActingCylinder.cushionHead.cushionRestriction.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 (215): * Single equations (assignments): 206 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001162/0.3046, allocations: 0.8208 MB / 464.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000392/0.305, allocations: 213.4 kB / 464.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00395/0.309, allocations: 2.241 MB / 467 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.12e-05/0.309, allocations: 11.97 kB / 467.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.309, allocations: 0 / 467.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008835/0.3099, allocations: 494.2 kB / 467.5 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003189/0.3102, allocations: 43.94 kB / 467.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009525/0.3112, allocations: 63.95 kB / 467.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002481/0.3115, allocations: 133.8 kB / 467.8 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004405/0.3159, allocations: 2.535 MB / 470.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004695/0.3206, allocations: 3.074 MB / 473.4 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001274/0.3219, allocations: 0.8043 MB / 474.2 MB, free: 1.938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002113/0.324, allocations: 1.387 MB / 475.6 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of Backend: time 4.71e-07/0.324, allocations: 0 / 475.6 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004145/0.3282, allocations: 2.096 MB / 477.7 MB, free: 14.49 MB / 366.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.007361/0.3355, allocations: 5.262 MB / 482.9 MB, free: 9.082 MB / 366.1 MB Notification: Performance of Templates: time 0.05443/0.39, allocations: 35.41 MB / 0.5062 GB, free: 5.633 MB / 398.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2.makefile (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2.sim & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2.pipe 2>&1)