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.0009885/0.0009885, allocations: 107.7 kB / 15.99 MB, free: 6.355 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.001002/0.001002, allocations: 190.4 kB / 16.91 MB, free: 6.195 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.215/1.215, allocations: 205.1 MB / 222.8 MB, free: 4.691 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05117/0.05117, allocations: 11.84 MB / 281.9 MB, free: 9.594 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.001336/0.001336, allocations: 72.56 kB / 342 MB, free: 22.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06608/0.06742, allocations: 49.23 MB / 391.2 MB, free: 5.039 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.005714/0.07317, allocations: 5.566 MB / 396.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003581/0.07678, allocations: 2.813 MB / 399.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003462/0.07717, allocations: 12 kB / 399.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004078/0.07759, allocations: 123.2 kB / 399.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006112/0.07821, allocations: 298.2 kB / 400 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001013/0.07924, allocations: 0.5069 MB / 400.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009473/0.08019, allocations: 1.102 MB / 401.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004013/0.0806, allocations: 332.6 kB / 401.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004053/0.08102, allocations: 406.6 kB / 402.3 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004335/0.08146, allocations: 450.2 kB / 402.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.33e-05/0.08156, allocations: 91.94 kB / 402.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004524/0.08202, allocations: 315.7 kB / 403.2 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.0822, allocations: 191.4 kB / 403.4 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000334/0.08254, allocations: 446 kB / 403.8 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008237/0.08337, allocations: 0.92 MB / 404.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.08338, allocations: 0 / 404.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.08339, allocations: 0 / 404.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.0834, allocations: 0 / 404.7 MB, free: 7.473 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.001638/0.08504, allocations: 1.081 MB / 405.8 MB, free: 6.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.08508, allocations: 19.83 kB / 405.8 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.08527, allocations: 87.89 kB / 405.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005675/0.08585, allocations: 0.4899 MB / 406.4 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/0.0859, allocations: 49.25 kB / 406.4 MB, free: 5.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.913e-05/0.08599, allocations: 59.91 kB / 406.5 MB, free: 5.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.08703, allocations: 0.683 MB / 407.2 MB, free: 4.891 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.08706, allocations: 0 / 407.2 MB, free: 4.891 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.557e-05/0.08712, allocations: 24 kB / 407.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.08714, allocations: 16 kB / 407.2 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008796/0.08803, allocations: 0.5478 MB / 407.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003637/0.09167, allocations: 3.382 MB / 411.1 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008434/0.09253, allocations: 0.4955 MB / 411.6 MB, free: 40 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003197/0.09286, allocations: 192.8 kB / 411.8 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001125/0.09298, allocations: 97.09 kB / 411.9 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.237e-05/0.09301, allocations: 34.56 kB / 412 MB, free: 15.69 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 3.637e-06/0.09302, allocations: 0.5625 kB / 412 MB, free: 15.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.002852/0.09588, allocations: 1.456 MB / 413.4 MB, free: 14.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.09594, allocations: 85.09 kB / 413.5 MB, free: 14.04 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006017/0.09654, allocations: 0.5693 MB / 414.1 MB, free: 13.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.293e-05/0.0966, allocations: 41.7 kB / 414.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002014/0.0968, allocations: 308.6 kB / 414.4 MB, free: 13.11 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.09692, allocations: 145.9 kB / 414.6 MB, free: 12.96 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001605/0.09709, allocations: 94.14 kB / 414.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.09723, allocations: 370.8 kB / 415 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003132/0.09755, allocations: 182.5 kB / 415.2 MB, free: 12.31 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003484/0.0979, allocations: 277.9 kB / 415.5 MB, free: 12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002744/0.1007, allocations: 1.044 MB / 416.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1007, allocations: 0 / 416.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009355/0.1016, allocations: 0.5878 MB / 417.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/0.1017, allocations: 33.7 kB / 417.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1017, allocations: 0 / 417.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000179/0.1019, allocations: 100.8 kB / 417.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004098/0.1023, allocations: 99.77 kB / 417.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001625/0.1039, allocations: 1.779 MB / 419.1 MB, free: 8.125 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000426/0.1043, allocations: 47.94 kB / 419.1 MB, free: 8.078 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.941e-05/0.1044, allocations: 23.94 kB / 419.2 MB, free: 8.055 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 = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 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.0004054/0.1048, allocations: 308.4 kB / 419.5 MB, free: 7.742 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.96e-05/0.1049, allocations: 59.25 kB / 419.5 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009878/0.1059, allocations: 0.5526 MB / 420.1 MB, free: 7.117 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1059, allocations: 4 kB / 420.1 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.1059, allocations: 3.938 kB / 420.1 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1059, allocations: 0 / 420.1 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001786/0.1077, allocations: 1.288 MB / 421.4 MB, free: 5.746 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.1078, allocations: 4 kB / 421.4 MB, free: 5.742 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004044/0.1082, allocations: 87.83 kB / 421.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00014/0.1083, allocations: 84.81 kB / 421.5 MB, free: 5.57 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.492e-05/0.1084, allocations: 12.09 kB / 421.6 MB, free: 5.559 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00137/0.1097, allocations: 1.586 MB / 423.1 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.1097, allocations: 7.922 kB / 423.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.1109, allocations: 0.821 MB / 424 MB, free: 2.965 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002286/0.1111, allocations: 192.3 kB / 424.2 MB, free: 2.758 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.039e-05/0.1112, allocations: 12 kB / 424.2 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003772/0.1116, allocations: 47.94 kB / 424.2 MB, free: 2.699 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002454/0.1119, allocations: 127.8 kB / 424.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.349e-05/0.1119, allocations: 16 kB / 424.4 MB, free: 2.559 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004445/0.1124, allocations: 414.8 kB / 424.8 MB, free: 2.156 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1124, allocations: 0 / 424.8 MB, free: 2.156 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006354/0.113, allocations: 191.9 kB / 424.9 MB, free: 1.969 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.0009035/0.1139, allocations: 447.2 kB / 425.4 MB, free: 1.633 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001059/0.115, allocations: 0.6069 MB / 426 MB, free: 1.004 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.115, allocations: 4.25 kB / 426 MB, free: 1 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004493/0.1155, allocations: 385.8 kB / 426.4 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008061/0.1163, allocations: 190.1 kB / 426.6 MB, free: 416 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.119/0.2352, allocations: 1.579 MB / 428.1 MB, free: 40.8 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.2356, allocations: 0.9183 MB / 429.1 MB, free: 40.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/0.2358, allocations: 57.16 kB / 429.1 MB, free: 40.09 MB / 318.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2358, allocations: 0 / 429.1 MB, free: 40.09 MB / 318.1 MB Notification: Performance of Templates: time 0.01424/0.25, allocations: 13 MB / 442.1 MB, free: 35.72 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)