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.00153/0.00153, allocations: 101.5 kB / 16.29 MB, free: 5.914 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.001828/0.001828, allocations: 184.8 kB / 17.22 MB, free: 5.551 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.312/1.312, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05619/0.05619, allocations: 11.84 MB / 282.3 MB, free: 296 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.001456/0.001456, allocations: 72.19 kB / 342.6 MB, free: 3.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1923/0.1938, allocations: 49.22 MB / 391.8 MB, free: 49.06 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.004571/0.1984, allocations: 4.403 MB / 396.2 MB, free: 45.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003046/0.2015, allocations: 2.691 MB / 398.9 MB, free: 44.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002505/0.2017, allocations: 7.906 kB / 398.9 MB, free: 44.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004022/0.2022, allocations: 157.4 kB / 399 MB, free: 43.95 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.0006066/0.2028, allocations: 342.9 kB / 399.4 MB, free: 43.72 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.2038, allocations: 0.5631 MB / 399.9 MB, free: 43.42 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008062/0.2046, allocations: 1.099 MB / 401 MB, free: 42.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003858/0.205, allocations: 342.2 kB / 401.4 MB, free: 42.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003515/0.2054, allocations: 397.2 kB / 401.7 MB, free: 42.44 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004284/0.2058, allocations: 442.8 kB / 402.2 MB, free: 42.15 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.2059, allocations: 89.5 kB / 402.3 MB, free: 42.15 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004625/0.2064, allocations: 305.3 kB / 402.6 MB, free: 42.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000143/0.2066, allocations: 201 kB / 402.8 MB, free: 41.88 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003434/0.2069, allocations: 444.1 kB / 403.2 MB, free: 41.58 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009054/0.2078, allocations: 1.173 MB / 404.4 MB, free: 40.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2078, allocations: 4 kB / 404.4 MB, free: 40.76 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2078, allocations: 0 / 404.4 MB, free: 40.76 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.2079, allocations: 1.219 kB / 404.4 MB, free: 40.76 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.001522/0.2094, allocations: 1.084 MB / 405.5 MB, free: 39.87 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.2094, allocations: 13.08 kB / 405.5 MB, free: 39.87 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/0.2096, allocations: 83.25 kB / 405.5 MB, free: 39.83 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005401/0.2102, allocations: 0.4982 MB / 406 MB, free: 39.38 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.675e-05/0.2102, allocations: 53.78 kB / 406.1 MB, free: 39.35 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.097e-05/0.2103, allocations: 57.62 kB / 406.2 MB, free: 39.33 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009478/0.2113, allocations: 0.6824 MB / 406.8 MB, free: 38.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.195e-05/0.2113, allocations: 1.094 kB / 406.8 MB, free: 38.9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.649e-05/0.2114, allocations: 25.36 kB / 406.9 MB, free: 38.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.2114, allocations: 13.25 kB / 406.9 MB, free: 38.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008769/0.2123, allocations: 0.5429 MB / 407.4 MB, free: 38.6 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003227/0.2155, allocations: 3.383 MB / 410.8 MB, free: 35.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008044/0.2163, allocations: 0.4994 MB / 411.3 MB, free: 35.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002872/0.2166, allocations: 198 kB / 411.5 MB, free: 34.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.013e-05/0.2167, allocations: 93.11 kB / 411.6 MB, free: 34.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.491e-05/0.2167, allocations: 38.55 kB / 411.6 MB, free: 34.79 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 1.563e-06/0.2167, allocations: 0 / 411.6 MB, free: 34.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.002476/0.2192, allocations: 1.449 MB / 413.1 MB, free: 33.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.537e-05/0.2193, allocations: 81.11 kB / 413.2 MB, free: 33.15 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004871/0.2198, allocations: 0.5732 MB / 413.7 MB, free: 32.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.2198, allocations: 45.69 kB / 413.8 MB, free: 32.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.22, allocations: 300.7 kB / 414.1 MB, free: 32.22 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.094e-05/0.22, allocations: 153.8 kB / 414.2 MB, free: 32.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.2202, allocations: 90.16 kB / 414.3 MB, free: 31.97 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.75e-05/0.2203, allocations: 378.6 kB / 414.7 MB, free: 31.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002696/0.2205, allocations: 178.5 kB / 414.8 MB, free: 31.42 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002895/0.2208, allocations: 281.9 kB / 415.1 MB, free: 31.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002396/0.2232, allocations: 1.044 MB / 416.2 MB, free: 29.99 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2232, allocations: 0 / 416.2 MB, free: 29.99 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007926/0.224, allocations: 0.5836 MB / 416.7 MB, free: 29.39 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.2241, allocations: 33.7 kB / 416.8 MB, free: 29.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.2241, allocations: 0 / 416.8 MB, free: 29.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001548/0.2242, allocations: 96.81 kB / 416.9 MB, free: 29.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003846/0.2246, allocations: 104.2 kB / 417 MB, free: 29.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001209/0.2259, allocations: 1.767 MB / 418.7 MB, free: 27.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003622/0.2262, allocations: 43.95 kB / 418.8 MB, free: 27.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.82e-05/0.2263, allocations: 19.94 kB / 418.8 MB, free: 27.18 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 = 1e5 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.0002827/0.2266, allocations: 278.4 kB / 419.1 MB, free: 26.89 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.762e-05/0.2267, allocations: 59.25 kB / 419.1 MB, free: 26.83 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008565/0.2275, allocations: 0.5527 MB / 419.7 MB, free: 26.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2275, allocations: 4 kB / 419.7 MB, free: 26.26 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.2276, allocations: 3.938 kB / 419.7 MB, free: 26.26 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.2276, allocations: 3.984 kB / 419.7 MB, free: 26.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/0.2291, allocations: 1.28 MB / 421 MB, free: 24.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.2291, allocations: 8.094 kB / 421 MB, free: 24.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003738/0.2295, allocations: 79.89 kB / 421.1 MB, free: 24.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00012/0.2296, allocations: 80.92 kB / 421.1 MB, free: 24.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.126e-05/0.2296, allocations: 15.98 kB / 421.2 MB, free: 24.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009991/0.2306, allocations: 1.594 MB / 422.8 MB, free: 22.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2307, allocations: 3.938 kB / 422.8 MB, free: 22.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009529/0.2316, allocations: 0.817 MB / 423.6 MB, free: 22.12 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.2318, allocations: 192.3 kB / 423.8 MB, free: 21.92 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.929e-05/0.2319, allocations: 20 kB / 423.8 MB, free: 21.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003568/0.2323, allocations: 35.95 kB / 423.8 MB, free: 21.86 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001846/0.2325, allocations: 127.8 kB / 423.9 MB, free: 21.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/0.2325, allocations: 19.92 kB / 424 MB, free: 21.72 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003288/0.2328, allocations: 414.8 kB / 424.4 MB, free: 21.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2328, allocations: 0 / 424.4 MB, free: 21.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005631/0.2334, allocations: 196.1 kB / 424.6 MB, free: 21.12 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.0008488/0.2343, allocations: 445.7 kB / 425 MB, free: 20.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007465/0.235, allocations: 0.5829 MB / 425.6 MB, free: 20.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.235, allocations: 4 kB / 425.6 MB, free: 20.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003767/0.2354, allocations: 389.9 kB / 426 MB, free: 19.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007089/0.2361, allocations: 184.6 kB / 426.1 MB, free: 19.64 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.2376, allocations: 1.312 MB / 427.5 MB, free: 18.29 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.2379, allocations: 0.9183 MB / 428.4 MB, free: 17.35 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002478/0.2382, allocations: 93.02 kB / 428.5 MB, free: 17.25 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.2383, allocations: 51.42 kB / 428.5 MB, free: 17.2 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2383, allocations: 4 kB / 428.5 MB, free: 17.2 MB / 318.1 MB Notification: Performance of Templates: time 0.01371/0.252, allocations: 11.7 MB / 440.2 MB, free: 5.57 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 -s gbode -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe 2>&1)