Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.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.ReliefValveTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest") translateModel(OpenHydraulics.DevelopmentTests.ReliefValveTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001957/0.001957, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00242/0.00242, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.513/1.513, allocations: 205.1 MB / 222.4 MB, free: 4.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05599/0.05599, allocations: 11.84 MB / 281.6 MB, free: 9.441 MB / 238.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.001766/0.001766, allocations: 75.89 kB / 341.8 MB, free: 21.98 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0917/0.09348, allocations: 49.23 MB / 391 MB, free: 4.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.00674/0.1003, allocations: 4.418 MB / 395.5 MB, free: 268 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004565/0.1049, allocations: 2.688 MB / 398.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006448/0.1055, allocations: 8 kB / 398.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007084/0.1063, allocations: 150.8 kB / 398.3 MB, free: 13.41 MB / 302.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.001151/0.1075, allocations: 341.7 kB / 398.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001505/0.109, allocations: 0.5611 MB / 399.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001395/0.1104, allocations: 1.101 MB / 400.3 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005703/0.111, allocations: 328.6 kB / 400.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006393/0.1116, allocations: 402.6 kB / 401 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007294/0.1124, allocations: 442.3 kB / 401.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001932/0.1126, allocations: 84 kB / 401.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007297/0.1133, allocations: 307.7 kB / 401.8 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002562/0.1136, allocations: 199.4 kB / 402 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006415/0.1142, allocations: 446 kB / 402.5 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001609/0.1159, allocations: 1.165 MB / 403.6 MB, free: 8.066 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1159, allocations: 4 kB / 403.6 MB, free: 8.062 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1159, allocations: 4 kB / 403.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.541e-05/0.1159, allocations: 0 / 403.6 MB, free: 8.059 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.002565/0.1185, allocations: 1.081 MB / 404.7 MB, free: 6.918 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1186, allocations: 15.89 kB / 404.7 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002869/0.1188, allocations: 83.91 kB / 404.8 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009021/0.1198, allocations: 0.4938 MB / 405.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.138e-05/0.1198, allocations: 53.19 kB / 405.4 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.1199, allocations: 55.91 kB / 405.4 MB, free: 6.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.1212, allocations: 0.6792 MB / 406.1 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.1213, allocations: 4 kB / 406.1 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.18e-05/0.1213, allocations: 20 kB / 406.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.1214, allocations: 19.94 kB / 406.1 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.1224, allocations: 0.5478 MB / 406.7 MB, free: 4.891 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004723/0.1271, allocations: 3.394 MB / 410.1 MB, free: 1.133 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009749/0.1281, allocations: 0.5071 MB / 410.6 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003474/0.1285, allocations: 192.8 kB / 410.8 MB, free: 420 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000123/0.1286, allocations: 89.09 kB / 410.9 MB, free: 312 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.1287, allocations: 35.12 kB / 410.9 MB, free: 268 kB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 4.178e-06/0.1287, allocations: 7.984 kB / 410.9 MB, free: 260 kB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.003364/0.1321, allocations: 1.454 MB / 412.4 MB, free: 14.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.962e-05/0.1321, allocations: 85.11 kB / 412.4 MB, free: 14.6 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007687/0.1329, allocations: 0.5693 MB / 413 MB, free: 14.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.835e-05/0.133, allocations: 37.7 kB / 413 MB, free: 13.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002865/0.1333, allocations: 308.6 kB / 413.3 MB, free: 13.67 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.1334, allocations: 149.8 kB / 413.5 MB, free: 13.53 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001791/0.1336, allocations: 94.16 kB / 413.6 MB, free: 13.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.1338, allocations: 370.8 kB / 413.9 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003748/0.1342, allocations: 182.5 kB / 414.1 MB, free: 12.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004311/0.1346, allocations: 277.9 kB / 414.4 MB, free: 12.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002978/0.1376, allocations: 1.033 MB / 415.4 MB, free: 11.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.1376, allocations: 3.938 kB / 415.4 MB, free: 11.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00113/0.1388, allocations: 0.5836 MB / 416 MB, free: 10.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.318e-05/0.1388, allocations: 33.7 kB / 416.1 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.1388, allocations: 4.359 kB / 416.1 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002232/0.1391, allocations: 104.8 kB / 416.2 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004421/0.1395, allocations: 103.8 kB / 416.3 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001924/0.1415, allocations: 1.767 MB / 418 MB, free: 8.699 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004566/0.1419, allocations: 48.05 kB / 418.1 MB, free: 8.652 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.803e-05/0.142, allocations: 23.94 kB / 418.1 MB, free: 8.629 MB / 318.1 MB Warning: Assuming fixed start value for the following 3 variables: constantSpeed.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real reliefValve.variableRestriction.port_a.p:VARIABLE(flow=false min = 0.0 start = idealPump.fluidPower2MechRot.p_init unit = "Pa" fixed = true nominal = 100000.0 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 9 (reliefValve.variableRestriction.data.zetaLaminarKnown,idealPump.mechanicalPumpLosses.free,idealPump.mechanicalPumpLosses.mode,$PRE.idealPump.mechanicalPumpLosses.mode,idealPump.mechanicalPumpLosses.locked,idealPump.mechanicalPumpLosses.startBackward,$PRE.idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.startForward,$PRE.idealPump.mechanicalPumpLosses.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0004409/0.1424, allocations: 278.2 kB / 418.4 MB, free: 8.348 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.1426, allocations: 59.25 kB / 418.4 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001117/0.1437, allocations: 0.5449 MB / 419 MB, free: 7.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.1437, allocations: 4 kB / 419 MB, free: 7.727 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.1437, allocations: 3.938 kB / 419 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-06/0.1437, allocations: 3.984 kB / 419 MB, free: 7.719 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002163/0.1459, allocations: 1.28 MB / 420.3 MB, free: 6.363 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.1459, allocations: 4 kB / 420.3 MB, free: 6.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004238/0.1464, allocations: 83.89 kB / 420.3 MB, free: 6.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001651/0.1465, allocations: 84.86 kB / 420.4 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.341e-05/0.1466, allocations: 15.98 kB / 420.4 MB, free: 6.176 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001585/0.1482, allocations: 1.598 MB / 422 MB, free: 4.441 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.1482, allocations: 3.938 kB / 422 MB, free: 4.438 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/0.1495, allocations: 0.8132 MB / 422.9 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002813/0.1498, allocations: 192.3 kB / 423.1 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/0.15, allocations: 20 kB / 423.1 MB, free: 3.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004134/0.1504, allocations: 35.95 kB / 423.1 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002565/0.1507, allocations: 131.7 kB / 423.2 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.719e-05/0.1507, allocations: 19.98 kB / 423.3 MB, free: 3.176 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005187/0.1512, allocations: 414.8 kB / 423.7 MB, free: 2.773 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1512, allocations: 0 / 423.7 MB, free: 2.773 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007147/0.152, allocations: 200 kB / 423.9 MB, free: 2.578 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (reliefValve.variableRestriction.port_a.p,reliefValve.valvePosition,circuitTank.volumeOpen.m,constantSpeed.phi) * Number of discrete variables: 4 (idealPump.mechanicalPumpLosses.startForward,idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.locked,idealPump.mechanicalPumpLosses.mode) * Number of discrete states: 3 (idealPump.mechanicalPumpLosses.mode,idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001056/0.153, allocations: 436.8 kB / 424.3 MB, free: 2.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001219/0.1543, allocations: 0.6062 MB / 424.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1543, allocations: 4.25 kB / 424.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000541/0.1548, allocations: 393.8 kB / 425.3 MB, free: 1.203 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009038/0.1557, allocations: 192 kB / 425.5 MB, free: 1.012 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1521/0.3079, allocations: 1.318 MB / 426.8 MB, free: 40.71 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/0.3083, allocations: 0.9227 MB / 427.7 MB, free: 40 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005008/0.3089, allocations: 90.48 kB / 427.8 MB, free: 40 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.3091, allocations: 56.27 kB / 427.8 MB, free: 40 MB / 318.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3091, allocations: 3.828 kB / 427.9 MB, free: 40 MB / 318.1 MB Notification: Performance of Templates: time 0.02518/0.3342, allocations: 11.7 MB / 439.5 MB, free: 36.61 MB / 318.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.makefile (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.sim & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe 2>&1)