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.001137/0.001137, allocations: 114.6 kB / 16.42 MB, free: 6.473 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.001043/0.001043, allocations: 189.5 kB / 17.35 MB, free: 5.711 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.284/1.284, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05686/0.05686, allocations: 11.84 MB / 282.4 MB, free: 204 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.001551/0.001551, allocations: 74.72 kB / 393 MB, free: 45.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06559/0.06715, allocations: 49.24 MB / 442.3 MB, free: 2.07 MB / 318.1 MB [/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) as default value. [/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) as default value. Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple): time 0.009034/0.07621, allocations: 9.403 MB / 451.7 MB, free: 8.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006599/0.08283, allocations: 4.545 MB / 456.2 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007101/0.08356, allocations: 27.88 kB / 456.2 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009905/0.08456, allocations: 0.6096 MB / 456.8 MB, free: 3.426 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.001899/0.08647, allocations: 1.153 MB / 458 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002627/0.0891, allocations: 1.457 MB / 459.4 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003004/0.09212, allocations: 3.352 MB / 462.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001022/0.09315, allocations: 0.834 MB / 463.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001194/0.09436, allocations: 1.168 MB / 464.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001451/0.09582, allocations: 1.288 MB / 466.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003204/0.09615, allocations: 244 kB / 466.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007827/0.09694, allocations: 447.8 kB / 466.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005113/0.09746, allocations: 0.6501 MB / 467.4 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001108/0.09858, allocations: 1.333 MB / 468.7 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003275/0.1019, allocations: 3.507 MB / 472.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1019, allocations: 0 / 472.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1019, allocations: 0 / 472.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.75e-05/0.1019, allocations: 0 / 472.3 MB, free: 3.934 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: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.004252/0.1062, allocations: 2.956 MB / 475.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.1062, allocations: 15.83 kB / 475.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004116/0.1067, allocations: 283.2 kB / 475.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/0.1087, allocations: 1.542 MB / 477 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002124/0.109, allocations: 237.9 kB / 477.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002357/0.1092, allocations: 164 kB / 477.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002801/0.112, allocations: 1.63 MB / 479.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.061e-05/0.1121, allocations: 3.984 kB / 479.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001377/0.1122, allocations: 68 kB / 479.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.59e-05/0.1122, allocations: 36 kB / 479.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00297/0.1152, allocations: 1.652 MB / 480.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01051/0.1258, allocations: 9.059 MB / 489.9 MB, free: 1.223 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002797/0.1286, allocations: 1.789 MB / 491.7 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001399/0.13, allocations: 0.7783 MB / 492.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001814/0.1302, allocations: 122.3 kB / 492.6 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001445/0.1316, allocations: 0.8443 MB / 493.4 MB, free: 13.58 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 3.447e-06/0.1317, allocations: 0 / 493.4 MB, free: 13.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=187): time 0.01358/0.1452, allocations: 6.815 MB / 0.4885 GB, free: 6.504 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.1454, allocations: 283 kB / 0.4888 GB, free: 6.168 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002813/0.1482, allocations: 2.046 MB / 0.4908 GB, free: 4.078 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001529/0.1484, allocations: 57.7 kB / 0.4908 GB, free: 4.016 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007989/0.1492, allocations: 0.8971 MB / 0.4917 GB, free: 3.109 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005151/0.1497, allocations: 0.6545 MB / 0.4923 GB, free: 2.449 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005379/0.1502, allocations: 315.5 kB / 0.4926 GB, free: 2.133 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.1504, allocations: 309 kB / 0.4929 GB, free: 1.828 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00131/0.1517, allocations: 0.5973 MB / 0.4935 GB, free: 1.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001483/0.1532, allocations: 0.8736 MB / 0.4944 GB, free: 280 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01251/0.1657, allocations: 4.365 MB / 0.4986 GB, free: 11.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.505e-06/0.1657, allocations: 4 kB / 0.4986 GB, free: 11.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004122/0.1699, allocations: 2.122 MB / 0.5007 GB, free: 9.441 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001164/0.17, allocations: 225.6 kB / 0.5009 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.17, allocations: 8 kB / 0.5009 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.807e-05/0.1701, allocations: 12 kB / 0.5009 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001801/0.1719, allocations: 431.5 kB / 0.5014 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.298e-05/0.1719, allocations: 19.94 kB / 0.5014 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.1731, allocations: 71.8 kB / 0.5014 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001597/0.1733, allocations: 83.91 kB / 0.5015 GB, free: 8.559 MB / 398.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 = 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.001197/0.1745, allocations: 0.814 MB / 0.5023 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004373/0.1749, allocations: 242.5 kB / 0.5026 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004184/0.1791, allocations: 2.261 MB / 0.5048 GB, free: 5.133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.141e-05/0.1791, allocations: 11.95 kB / 0.5048 GB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.1791, allocations: 0 / 0.5048 GB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009074/0.1801, allocations: 0.5032 MB / 0.5053 GB, free: 4.598 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003468/0.1804, allocations: 40 kB / 0.5053 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009157/0.1813, allocations: 63.94 kB / 0.5054 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002607/0.1816, allocations: 141.8 kB / 0.5055 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004535/0.1862, allocations: 2.589 MB / 0.508 GB, free: 1.613 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005044/0.1912, allocations: 3.201 MB / 0.5112 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001383/0.1926, allocations: 0.8433 MB / 0.512 GB, free: 13.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00207/0.1947, allocations: 1.424 MB / 0.5134 GB, free: 12.06 MB / 414.1 MB Notification: Performance of Backend: time 4.31e-07/0.1947, allocations: 0 / 0.5134 GB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004014/0.1987, allocations: 2.014 MB / 0.5153 GB, free: 10.06 MB / 414.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.007286/0.206, allocations: 5.275 MB / 0.5205 GB, free: 4.617 MB / 414.1 MB Notification: Performance of Templates: time 0.2058/0.4118, allocations: 36.48 MB / 0.5561 GB, free: 69.37 MB / 414.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)