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.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.DirectionalValveTestSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple") translateModel(OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 97.11 kB / 16.24 MB, free: 6.379 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.001459/0.001459, allocations: 187.6 kB / 17.17 MB, free: 5.98 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.288/1.288, allocations: 205.1 MB / 223 MB, free: 12.35 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.0535/0.0535, allocations: 11.84 MB / 282.2 MB, free: 332 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.001432/0.001432, allocations: 68.61 kB / 342.4 MB, free: 3.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2131, allocations: 49.21 MB / 391.6 MB, free: 49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple): time 0.008566/0.2217, allocations: 9.402 MB / 401 MB, free: 42.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008625/0.2303, allocations: 4.551 MB / 405.6 MB, free: 38.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001879/0.2323, allocations: 33.62 kB / 405.6 MB, free: 38.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.2337, allocations: 0.6009 MB / 406.2 MB, free: 38.3 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.002838/0.2365, allocations: 1.108 MB / 407.3 MB, free: 37.37 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003216/0.2398, allocations: 1.454 MB / 408.8 MB, free: 36.29 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003764/0.2435, allocations: 3.357 MB / 412.2 MB, free: 34.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00107/0.2446, allocations: 0.8382 MB / 413 MB, free: 33.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001422/0.2461, allocations: 1.135 MB / 414.1 MB, free: 32.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00105/0.2471, allocations: 1.288 MB / 415.4 MB, free: 31.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002727/0.2474, allocations: 240 kB / 415.6 MB, free: 31.17 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007423/0.2482, allocations: 459.8 kB / 416.1 MB, free: 30.72 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003639/0.2485, allocations: 0.6345 MB / 416.7 MB, free: 30.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000843/0.2494, allocations: 1.337 MB / 418.1 MB, free: 28.74 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002405/0.2518, allocations: 3.447 MB / 421.5 MB, free: 25.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2518, allocations: 3.984 kB / 421.5 MB, free: 25.28 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2518, allocations: 0 / 421.5 MB, free: 25.28 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.733e-05/0.2519, allocations: 3.938 kB / 421.5 MB, free: 25.28 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: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.003708/0.2556, allocations: 2.888 MB / 424.4 MB, free: 22.28 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.2556, allocations: 15.89 kB / 424.4 MB, free: 22.26 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003653/0.256, allocations: 273.7 kB / 424.7 MB, free: 21.99 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001702/0.2577, allocations: 1.505 MB / 426.2 MB, free: 20.44 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001531/0.2579, allocations: 237.9 kB / 426.4 MB, free: 20.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001846/0.2581, allocations: 159.9 kB / 426.6 MB, free: 20.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002324/0.2604, allocations: 1.626 MB / 428.2 MB, free: 18.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.816e-05/0.2605, allocations: 7.922 kB / 428.2 MB, free: 18.37 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001229/0.2606, allocations: 68 kB / 428.3 MB, free: 18.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.2606, allocations: 40 kB / 428.3 MB, free: 18.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002429/0.263, allocations: 1.656 MB / 430 MB, free: 16.61 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008253/0.2713, allocations: 9.088 MB / 439.1 MB, free: 6.641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00225/0.2736, allocations: 1.785 MB / 440.9 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001104/0.2747, allocations: 0.7666 MB / 441.6 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001475/0.2749, allocations: 122.4 kB / 441.7 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001168/0.2761, allocations: 0.8326 MB / 442.6 MB, free: 3.027 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 3.898e-06/0.2761, allocations: 0 / 442.6 MB, free: 3.027 MB / 318.1 MB Notification: Performance of matching and sorting (n=187): time 0.01264/0.2887, allocations: 6.776 MB / 449.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.2889, allocations: 283 kB / 449.6 MB, free: 11.65 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Sources.mo:517:5-517:73:writable] Warning: Parameter sine.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/Translational.mo:2342:7-2342:69:writable] Warning: Parameter slidingMass.m has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002652/0.2915, allocations: 2.05 MB / 451.7 MB, free: 9.559 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001344/0.2917, allocations: 61.7 kB / 451.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007118/0.2924, allocations: 0.8841 MB / 452.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004916/0.2929, allocations: 0.6237 MB / 453.2 MB, free: 7.965 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004842/0.2934, allocations: 315.5 kB / 453.6 MB, free: 7.652 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.955e-05/0.2935, allocations: 305.1 kB / 453.8 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/0.2946, allocations: 0.6013 MB / 454.5 MB, free: 6.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001345/0.296, allocations: 0.8701 MB / 455.3 MB, free: 5.793 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01149/0.3075, allocations: 4.393 MB / 459.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.3075, allocations: 3.938 kB / 459.7 MB, free: 1.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.003709/0.3113, allocations: 2.113 MB / 461.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000138/0.3114, allocations: 222.9 kB / 462 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.3114, allocations: 8 kB / 462.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.087e-05/0.3115, allocations: 12 kB / 462.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001785/0.3133, allocations: 423.8 kB / 462.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.575e-05/0.3133, allocations: 16 kB / 462.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/0.3145, allocations: 71.84 kB / 462.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/0.3146, allocations: 71.97 kB / 462.6 MB, free: 14.09 MB / 350.1 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 = 100000.0 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.001132/0.3157, allocations: 0.8242 MB / 463.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003645/0.3161, allocations: 221.3 kB / 463.7 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004134/0.3203, allocations: 2.269 MB / 465.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.192e-05/0.3203, allocations: 15.95 kB / 466 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.3203, allocations: 3.938 kB / 466 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009152/0.3212, allocations: 0.4903 MB / 466.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000268/0.3215, allocations: 47.84 kB / 466.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008681/0.3224, allocations: 67.95 kB / 466.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002431/0.3226, allocations: 137.7 kB / 466.7 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004638/0.3273, allocations: 2.601 MB / 469.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00496/0.3323, allocations: 3.199 MB / 472.5 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001297/0.3336, allocations: 0.8394 MB / 473.3 MB, free: 3.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001976/0.3356, allocations: 1.424 MB / 474.8 MB, free: 1.582 MB / 350.1 MB Notification: Performance of Backend: time 3.91e-07/0.3356, allocations: 0 / 474.8 MB, free: 1.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003993/0.3396, allocations: 1.999 MB / 476.8 MB, free: 15.66 MB / 366.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.007193/0.3468, allocations: 5.257 MB / 482 MB, free: 10.26 MB / 366.1 MB Notification: Performance of Templates: time 0.05853/0.4054, allocations: 35.77 MB / 0.5057 GB, free: 6.449 MB / 398.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.makefile (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=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple.pipe 2>&1)