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.001728/0.001728, allocations: 109 kB / 16.41 MB, free: 6.48 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.001824/0.001824, allocations: 194.5 kB / 17.35 MB, free: 5.75 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.429/1.429, 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.05753/0.05753, allocations: 11.85 MB / 282.4 MB, free: 220 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.001504/0.001505, allocations: 68.45 kB / 393 MB, free: 45.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07618/0.07769, allocations: 49.23 MB / 442.2 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTestSimple): time 0.009331/0.08706, allocations: 9.408 MB / 451.6 MB, free: 8.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00729/0.09438, allocations: 4.549 MB / 456.2 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001328/0.09577, allocations: 31.88 kB / 456.2 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001292/0.09708, allocations: 0.5979 MB / 456.8 MB, free: 3.438 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.002601/0.0997, allocations: 1.114 MB / 457.9 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00311/0.1028, allocations: 1.457 MB / 459.4 MB, free: 0.8711 MB / 334.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.0) 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.0) as default value. Notification: Performance of NFFlatten.flatten: time 0.00394/0.1068, allocations: 3.36 MB / 462.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001193/0.108, allocations: 0.8379 MB / 463.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00162/0.1096, allocations: 1.152 MB / 464.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002058/0.1117, allocations: 1.288 MB / 466 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005486/0.1122, allocations: 248 kB / 466.3 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.1134, allocations: 459.8 kB / 466.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006182/0.114, allocations: 0.6462 MB / 467.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001566/0.1156, allocations: 1.333 MB / 468.7 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003712/0.1193, allocations: 3.478 MB / 472.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1193, allocations: 3.938 kB / 472.2 MB, free: 4.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.1193, allocations: 0 / 472.2 MB, free: 4.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001132/0.1194, allocations: 3.938 kB / 472.2 MB, free: 4 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.005391/0.1248, allocations: 2.88 MB / 475.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.1249, allocations: 15.83 kB / 475.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004794/0.1254, allocations: 273.7 kB / 475.4 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/0.1277, allocations: 1.524 MB / 476.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002382/0.128, allocations: 237.9 kB / 477.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002543/0.1282, allocations: 167.9 kB / 477.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003036/0.1313, allocations: 1.626 MB / 478.9 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.123e-05/0.1314, allocations: 3.938 kB / 478.9 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001512/0.1315, allocations: 75.92 kB / 479 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.881e-05/0.1315, allocations: 36 kB / 479 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003005/0.1346, allocations: 1.656 MB / 480.7 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01154/0.1461, allocations: 9.038 MB / 489.7 MB, free: 1.398 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00267/0.1488, allocations: 1.793 MB / 491.5 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/0.1502, allocations: 0.7744 MB / 492.3 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001768/0.1504, allocations: 126.4 kB / 492.4 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001433/0.1518, allocations: 0.8326 MB / 493.2 MB, free: 13.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 4.248e-06/0.1518, allocations: 4 kB / 493.2 MB, free: 13.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=187): time 0.01349/0.1653, allocations: 6.771 MB / 0.4883 GB, free: 6.723 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.1655, allocations: 287 kB / 0.4886 GB, free: 6.383 MB / 382.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.002939/0.1684, allocations: 2.046 MB / 0.4906 GB, free: 4.293 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000159/0.1686, allocations: 57.7 kB / 0.4906 GB, free: 4.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007519/0.1694, allocations: 0.8918 MB / 0.4915 GB, free: 3.328 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005262/0.1699, allocations: 0.6237 MB / 0.4921 GB, free: 2.695 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005478/0.1705, allocations: 315.5 kB / 0.4924 GB, free: 2.379 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1706, allocations: 305.1 kB / 0.4927 GB, free: 2.078 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/0.1718, allocations: 0.5935 MB / 0.4933 GB, free: 1.484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.1732, allocations: 0.8774 MB / 0.4941 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01174/0.185, allocations: 4.365 MB / 0.4984 GB, free: 11.88 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/0.185, allocations: 4 kB / 0.4984 GB, free: 11.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.003662/0.1887, allocations: 2.109 MB / 0.5004 GB, free: 9.707 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001088/0.1888, allocations: 228.6 kB / 0.5007 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/0.1888, allocations: 11.98 kB / 0.5007 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.118e-05/0.1889, allocations: 20 kB / 0.5007 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/0.1906, allocations: 423.4 kB / 0.5011 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.914e-05/0.1906, allocations: 12 kB / 0.5011 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.1917, allocations: 67.91 kB / 0.5012 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/0.1919, allocations: 79.97 kB / 0.5013 GB, free: 8.836 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.00116/0.1931, allocations: 0.8112 MB / 0.502 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004552/0.1935, allocations: 233.1 kB / 0.5023 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004103/0.1976, allocations: 2.261 MB / 0.5045 GB, free: 5.418 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.125e-05/0.1977, allocations: 15.95 kB / 0.5045 GB, free: 5.402 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.1977, allocations: 3.938 kB / 0.5045 GB, free: 5.398 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009161/0.1986, allocations: 0.4942 MB / 0.505 GB, free: 4.883 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004166/0.199, allocations: 40 kB / 0.505 GB, free: 4.844 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.2001, allocations: 63.95 kB / 0.5051 GB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002515/0.2003, allocations: 137.8 kB / 0.5052 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004564/0.2049, allocations: 2.593 MB / 0.5077 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005037/0.21, allocations: 3.188 MB / 0.5109 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001333/0.2113, allocations: 0.8472 MB / 0.5117 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002247/0.2136, allocations: 1.424 MB / 0.5131 GB, free: 12.35 MB / 414.1 MB Notification: Performance of Backend: time 5.21e-07/0.2136, allocations: 0 / 0.5131 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004855/0.2185, allocations: 2.015 MB / 0.515 GB, free: 10.36 MB / 414.1 MB Notification: Invalid unit expression 'N/ (m/s)'. Notification: Performance of SimCode: time 0.008266/0.2268, allocations: 5.184 MB / 0.5201 GB, free: 5.008 MB / 414.1 MB Notification: Performance of Templates: time 0.2512/0.478, allocations: 37.22 MB / 0.5564 GB, free: 67.96 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)