Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1.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.DoubleActingCylinderTestSimple1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1") translateModel(OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 106.7 kB / 16.38 MB, free: 6.484 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.001052/0.001052, allocations: 189.3 kB / 17.31 MB, free: 5.82 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.374/1.374, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05512/0.05512, allocations: 11.85 MB / 282.4 MB, free: 236 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.002396/0.002396, allocations: 71.81 kB / 343.3 MB, free: 3.195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.245, allocations: 49.2 MB / 392.5 MB, free: 49.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1): time 0.009937/0.2549, allocations: 11.49 MB / 404 MB, free: 41.03 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008966/0.2639, allocations: 5.747 MB / 409.7 MB, free: 36.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002449/0.2665, allocations: 43.25 kB / 409.8 MB, free: 36.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001358/0.2678, allocations: 0.6494 MB / 410.4 MB, free: 35.8 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.003141/0.271, allocations: 1.342 MB / 411.8 MB, free: 34.66 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/Basic/BaseClasses/massFlowRate_dp_WallFriction.mo:82:9-82:71:writable] Warning: Re was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.003923/0.2749, allocations: 1.823 MB / 413.6 MB, free: 33.33 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004239/0.2792, allocations: 4.224 MB / 417.8 MB, free: 29.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001362/0.2805, allocations: 1.118 MB / 418.9 MB, free: 28.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001931/0.2825, allocations: 1.409 MB / 420.3 MB, free: 27.16 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002179/0.2847, allocations: 1.599 MB / 421.9 MB, free: 25.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006867/0.2854, allocations: 300 kB / 422.2 MB, free: 25.26 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001762/0.2871, allocations: 0.6947 MB / 422.9 MB, free: 24.56 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005659/0.2877, allocations: 0.763 MB / 423.7 MB, free: 23.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001428/0.2892, allocations: 1.641 MB / 425.3 MB, free: 22.15 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003018/0.2922, allocations: 4.238 MB / 429.6 MB, free: 17.9 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2922, allocations: 4 kB / 429.6 MB, free: 17.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2922, allocations: 0 / 429.6 MB, free: 17.89 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.661e-05/0.2923, allocations: 0 / 429.6 MB, free: 17.89 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: 499 * Number of variables: 499 Notification: Performance of Generate backend data structure: time 0.004347/0.2966, allocations: 3.338 MB / 432.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.2967, allocations: 11.89 kB / 432.9 MB, free: 14.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005704/0.2972, allocations: 317.3 kB / 433.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002244/0.2995, allocations: 1.752 MB / 435 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001828/0.2997, allocations: 266.7 kB / 435.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002294/0.2999, allocations: 203.9 kB / 435.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002949/0.3029, allocations: 2.023 MB / 437.5 MB, free: 9.805 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.348e-05/0.3029, allocations: 7.984 kB / 437.5 MB, free: 9.797 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001527/0.3031, allocations: 76 kB / 437.6 MB, free: 9.723 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/0.3031, allocations: 52 kB / 437.6 MB, free: 9.672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003004/0.3061, allocations: 1.995 MB / 439.6 MB, free: 7.676 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01165/0.3178, allocations: 11.97 MB / 451.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002928/0.3208, allocations: 1.796 MB / 453.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001832/0.3226, allocations: 1.036 MB / 454.4 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003774/0.323, allocations: 459.5 kB / 454.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001815/0.3248, allocations: 1.086 MB / 455.9 MB, free: 5.938 MB / 334.1 MB Notification: Performance of pre-optimization done (n=198): time 4.369e-06/0.3249, allocations: 4 kB / 455.9 MB, free: 5.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=227): time 0.031/0.3559, allocations: 9.306 MB / 465.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002043/0.3561, allocations: 320.6 kB / 465.6 MB, free: 12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005014/0.3611, allocations: 2.127 MB / 467.7 MB, free: 9.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003602/0.3615, allocations: 65.69 kB / 467.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001292/0.3628, allocations: 1.018 MB / 468.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001064/0.3639, allocations: 0.7622 MB / 469.5 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009539/0.3649, allocations: 375.8 kB / 469.9 MB, free: 7.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.365, allocations: 301.1 kB / 470.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002734/0.3678, allocations: 0.746 MB / 470.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003093/0.3709, allocations: 1.069 MB / 472 MB, free: 5.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03077/0.4017, allocations: 5.571 MB / 477.6 MB, free: 15.51 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.836e-05/0.4018, allocations: 4 kB / 477.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=274) (initialization): time 0.009947/0.4117, allocations: 2.703 MB / 480.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001948/0.412, allocations: 221.6 kB / 480.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-05/0.4121, allocations: 8 kB / 480.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001302/0.4134, allocations: 236.1 kB / 480.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003958/0.4173, allocations: 471.3 kB / 481.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01179/0.4292, allocations: 8.533 MB / 489.7 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00274/0.432, allocations: 83.86 kB / 489.8 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003599/0.4323, allocations: 87.91 kB / 489.9 MB, free: 2.312 MB / 366.1 MB Warning: Assuming fixed start value for the following 9 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.s_rel:VARIABLE(start = 0.0 unit = "m" fixed = true nominal = doubleActingCylinder.damper.s_nominal stateSelect=StateSelect.prefer ) "Relative distance (= flange_b.s - flange_a.s)" 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 = 1e5 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: 29 * 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 (260): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,4,100.0%), (1,4,100.0%), (1,1,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002408/0.4348, allocations: 0.9101 MB / 490.8 MB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008546/0.4356, allocations: 260.8 kB / 491.1 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009884/0.4455, allocations: 2.928 MB / 494 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.251e-05/0.4456, allocations: 11.95 kB / 494 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/0.4457, allocations: 4 kB / 494 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0021/0.4478, allocations: 0.5641 MB / 494.6 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006364/0.4484, allocations: 48 kB / 494.6 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001963/0.4504, allocations: 83.95 kB / 494.7 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004856/0.4509, allocations: 181.7 kB / 494.9 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01129/0.4622, allocations: 3.295 MB / 498.2 MB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01161/0.4739, allocations: 3.958 MB / 0.4904 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003092/0.477, allocations: 1.062 MB / 0.4914 GB, free: 4.461 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003729/0.4808, allocations: 1.482 MB / 0.4928 GB, free: 2.961 MB / 382.1 MB Notification: Performance of Backend: time 9.92e-07/0.4808, allocations: 0 / 0.4928 GB, free: 2.961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006527/0.4874, allocations: 2.936 MB / 0.4957 GB, free: 28 kB / 382.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.009079/0.4965, allocations: 6.278 MB / 0.5018 GB, free: 9.598 MB / 398.1 MB Notification: Performance of Templates: time 0.2207/0.7172, allocations: 43.69 MB / 0.5445 GB, free: 121.3 MB / 414.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1.makefile (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1.sim & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple1.pipe 2>&1)