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.001597/0.001597, allocations: 118.5 kB / 16.42 MB, free: 6.496 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.002021/0.002021, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.445/1.445, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05445/0.05445, allocations: 11.85 MB / 282.4 MB, free: 228 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.001621/0.001621, allocations: 74.64 kB / 393 MB, free: 45.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08429/0.08592, allocations: 49.23 MB / 442.2 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DoubleActingCylinderTestSimple2): time 0.01328/0.09924, allocations: 9.568 MB / 451.8 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01358/0.1129, allocations: 4.436 MB / 456.2 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002239/0.1152, allocations: 31.81 kB / 456.3 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00184/0.1171, allocations: 0.5785 MB / 456.9 MB, free: 3.414 MB / 334.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.004968/0.1221, allocations: 1.142 MB / 458 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0046/0.1267, allocations: 1.402 MB / 459.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005616/0.1324, allocations: 3.348 MB / 462.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001545/0.1339, allocations: 0.8575 MB / 463.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002294/0.1363, allocations: 1.144 MB / 464.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002721/0.139, allocations: 1.276 MB / 466 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008294/0.1399, allocations: 252 kB / 466.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001682/0.1416, allocations: 467.8 kB / 466.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001193/0.1428, allocations: 0.6345 MB / 467.4 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003112/0.1459, allocations: 1.33 MB / 468.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005553/0.1515, allocations: 3.466 MB / 472.2 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.1515, allocations: 0 / 472.2 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1515, allocations: 0 / 472.2 MB, free: 4.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001129/0.1517, allocations: 0 / 472.2 MB, free: 4.039 MB / 350.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.008998/0.1607, allocations: 2.849 MB / 475 MB, free: 1.078 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.83e-05/0.1608, allocations: 15.89 kB / 475 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001177/0.1619, allocations: 265.8 kB / 475.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00275/0.1647, allocations: 1.492 MB / 476.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003281/0.165, allocations: 238 kB / 477 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003467/0.1654, allocations: 163.9 kB / 477.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003391/0.1688, allocations: 1.646 MB / 478.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.126e-05/0.1689, allocations: 3.906 kB / 478.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002274/0.1691, allocations: 71.98 kB / 478.9 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.744e-05/0.1692, allocations: 40 kB / 478.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003623/0.1728, allocations: 1.64 MB / 480.6 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01335/0.1862, allocations: 9.116 MB / 489.7 MB, free: 1.414 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002895/0.1891, allocations: 1.793 MB / 491.5 MB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00141/0.1906, allocations: 0.755 MB / 492.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001873/0.1908, allocations: 118.4 kB / 492.3 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001459/0.1922, allocations: 0.8208 MB / 493.2 MB, free: 13.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=159): time 3.627e-06/0.1923, allocations: 0 / 493.2 MB, free: 13.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=174): time 0.01307/0.2053, allocations: 6.455 MB / 499.6 MB, free: 7.074 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.2055, allocations: 283 kB / 499.9 MB, free: 6.738 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002729/0.2082, allocations: 1.992 MB / 0.4901 GB, free: 4.699 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000174/0.2084, allocations: 57.7 kB / 0.4902 GB, free: 4.637 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006742/0.2091, allocations: 0.8718 MB / 0.491 GB, free: 3.754 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004525/0.2096, allocations: 0.5813 MB / 0.4916 GB, free: 3.164 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004438/0.21, allocations: 299.5 kB / 0.4919 GB, free: 2.863 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.964e-05/0.2101, allocations: 305.1 kB / 0.4922 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.2113, allocations: 0.574 MB / 0.4927 GB, free: 1.988 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001343/0.2126, allocations: 0.8674 MB / 0.4936 GB, free: 1.031 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0116/0.2242, allocations: 4.265 MB / 0.4977 GB, free: 12.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.219e-05/0.2243, allocations: 8 kB / 0.4978 GB, free: 12.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004142/0.2284, allocations: 2.17 MB / 0.4999 GB, free: 10.22 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001422/0.2286, allocations: 222.3 kB / 0.5001 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.168e-05/0.2286, allocations: 12 kB / 0.5001 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000169/0.2288, allocations: 60.64 kB / 0.5002 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001624/0.2305, allocations: 391.5 kB / 0.5005 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001541/0.232, allocations: 1.759 MB / 0.5022 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/0.2334, allocations: 79.91 kB / 0.5023 GB, free: 7.516 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001315/0.2335, allocations: 71.97 kB / 0.5024 GB, free: 7.445 MB / 398.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 = 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: 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.001401/0.2349, allocations: 0.8177 MB / 0.5032 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004249/0.2354, allocations: 221.3 kB / 0.5034 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004003/0.2394, allocations: 2.253 MB / 0.5056 GB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.223e-05/0.2394, allocations: 11.95 kB / 0.5056 GB, free: 4.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.2394, allocations: 0 / 0.5056 GB, free: 4.012 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/0.2405, allocations: 490.2 kB / 0.5061 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002925/0.2408, allocations: 32 kB / 0.5061 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008618/0.2416, allocations: 71.94 kB / 0.5062 GB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002587/0.2419, allocations: 125.8 kB / 0.5063 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004419/0.2463, allocations: 2.523 MB / 0.5088 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005091/0.2514, allocations: 3.074 MB / 0.5118 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001424/0.2529, allocations: 0.8082 MB / 0.5126 GB, free: 12.65 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002191/0.2551, allocations: 1.387 MB / 0.5139 GB, free: 11.24 MB / 414.1 MB Notification: Performance of Backend: time 4.51e-07/0.2551, allocations: 0 / 0.5139 GB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004653/0.2598, allocations: 2.102 MB / 0.516 GB, free: 9.152 MB / 414.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.008171/0.268, allocations: 5.205 MB / 0.521 GB, free: 3.785 MB / 414.1 MB Notification: Performance of Templates: time 0.2478/0.5158, allocations: 36.09 MB / 0.5563 GB, free: 67.75 MB / 414.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)