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: "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.ReliefValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.ReliefValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 108 kB / 15.61 MB, free: 152 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.001082/0.001082, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.268/1.268, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05276/0.05276, allocations: 11.85 MB / 281.6 MB, free: 9.422 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.001519/0.001519, allocations: 75.27 kB / 341.9 MB, free: 21.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07797/0.0795, allocations: 49.22 MB / 391.2 MB, free: 4.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.006296/0.08584, allocations: 4.411 MB / 395.6 MB, free: 176 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004192/0.09007, allocations: 2.689 MB / 398.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004809/0.09057, allocations: 8 kB / 398.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005395/0.09114, allocations: 158.8 kB / 398.4 MB, free: 13.31 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.0008449/0.092, allocations: 337.7 kB / 398.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001149/0.09316, allocations: 0.5646 MB / 399.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009975/0.09417, allocations: 1.105 MB / 400.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004433/0.09462, allocations: 332.6 kB / 400.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003925/0.09502, allocations: 398.6 kB / 401.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004685/0.0955, allocations: 442.3 kB / 401.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.09562, allocations: 88 kB / 401.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004785/0.09611, allocations: 303.7 kB / 401.9 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001884/0.09631, allocations: 199.4 kB / 402.1 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003766/0.09669, allocations: 446 kB / 402.6 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001126/0.09783, allocations: 1.172 MB / 403.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.09784, allocations: 0 / 403.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.09785, allocations: 0 / 403.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.519e-05/0.09787, allocations: 0 / 403.7 MB, free: 7.961 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.001733/0.09961, allocations: 1.085 MB / 404.8 MB, free: 6.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.09966, allocations: 15.89 kB / 404.8 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.09977, allocations: 98.7 kB / 404.9 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001825/0.09996, allocations: 80 kB / 405 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005979/0.1006, allocations: 0.5052 MB / 405.5 MB, free: 6.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.645e-05/0.1006, allocations: 49.25 kB / 405.6 MB, free: 6.023 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.514e-05/0.1007, allocations: 52 kB / 405.6 MB, free: 5.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.1017, allocations: 0.687 MB / 406.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.1018, allocations: 0 / 406.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.404e-05/0.1018, allocations: 20 kB / 406.3 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.1019, allocations: 16 kB / 406.3 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000904/0.1028, allocations: 0.5439 MB / 406.9 MB, free: 4.688 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003908/0.1067, allocations: 3.39 MB / 410.3 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008543/0.1075, allocations: 0.4996 MB / 410.8 MB, free: 416 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00031/0.1079, allocations: 192.9 kB / 411 MB, free: 220 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001072/0.108, allocations: 97.08 kB / 411.1 MB, free: 104 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.108, allocations: 43.06 kB / 411.1 MB, free: 48 kB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.653e-06/0.108, allocations: 3.938 kB / 411.1 MB, free: 44 kB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.003035/0.1111, allocations: 1.446 MB / 412.6 MB, free: 14.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.568e-05/0.1111, allocations: 85.09 kB / 412.6 MB, free: 14.4 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000684/0.1118, allocations: 0.5809 MB / 413.2 MB, free: 13.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.805e-05/0.1119, allocations: 41.7 kB / 413.3 MB, free: 13.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002644/0.1122, allocations: 296.8 kB / 413.6 MB, free: 13.47 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001557/0.1123, allocations: 149.9 kB / 413.7 MB, free: 13.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.1125, allocations: 94.14 kB / 413.8 MB, free: 13.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.1127, allocations: 370.7 kB / 414.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003403/0.1131, allocations: 190.5 kB / 414.3 MB, free: 12.67 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003723/0.1134, allocations: 277.9 kB / 414.6 MB, free: 12.35 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002791/0.1162, allocations: 1.04 MB / 415.7 MB, free: 11.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1163, allocations: 0 / 415.7 MB, free: 11.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000974/0.1172, allocations: 0.5839 MB / 416.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.837e-05/0.1173, allocations: 29.7 kB / 416.3 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.1173, allocations: 4 kB / 416.3 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001834/0.1175, allocations: 96.81 kB / 416.4 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003987/0.1179, allocations: 103.8 kB / 416.5 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/0.1196, allocations: 1.767 MB / 418.2 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004235/0.12, allocations: 43.98 kB / 418.3 MB, free: 8.453 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.793e-05/0.1201, allocations: 23.98 kB / 418.3 MB, free: 8.43 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.0004001/0.1205, allocations: 274.3 kB / 418.6 MB, free: 8.148 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.1206, allocations: 67.23 kB / 418.6 MB, free: 8.082 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.1216, allocations: 0.5449 MB / 419.2 MB, free: 7.523 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1217, allocations: 15.88 kB / 419.2 MB, free: 7.508 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.1217, allocations: 0 / 419.2 MB, free: 7.508 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.074e-06/0.1217, allocations: 4 kB / 419.2 MB, free: 7.504 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/0.1235, allocations: 1.276 MB / 420.5 MB, free: 6.152 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-06/0.1236, allocations: 4.094 kB / 420.5 MB, free: 6.148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003877/0.124, allocations: 87.89 kB / 420.6 MB, free: 6.062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001472/0.1241, allocations: 80.75 kB / 420.6 MB, free: 5.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.497e-05/0.1242, allocations: 19.98 kB / 420.7 MB, free: 5.961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001413/0.1256, allocations: 1.578 MB / 422.2 MB, free: 4.246 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.1256, allocations: 7.969 kB / 422.2 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.1268, allocations: 0.8173 MB / 423.1 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002109/0.127, allocations: 188.3 kB / 423.2 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.838e-05/0.1271, allocations: 20 kB / 423.3 MB, free: 3.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003585/0.1275, allocations: 43.89 kB / 423.3 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000232/0.1277, allocations: 127.7 kB / 423.4 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.253e-05/0.1277, allocations: 23.92 kB / 423.5 MB, free: 2.969 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004434/0.1282, allocations: 418.8 kB / 423.9 MB, free: 2.562 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1282, allocations: 0 / 423.9 MB, free: 2.562 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006304/0.1288, allocations: 191.9 kB / 424.1 MB, free: 2.375 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.002298/0.1311, allocations: 1.695 MB / 425.7 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001121/0.1323, allocations: 0.6141 MB / 426.4 MB, free: 108 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1323, allocations: 0 / 426.4 MB, free: 108 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1481/0.2804, allocations: 381.7 kB / 426.7 MB, free: 41.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009897/0.2815, allocations: 182.6 kB / 426.9 MB, free: 41.29 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006903/0.2884, allocations: 5.756 MB / 432.7 MB, free: 38.66 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004026/0.2888, allocations: 0.9224 MB / 433.6 MB, free: 37.94 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004171/0.2892, allocations: 90.58 kB / 433.7 MB, free: 37.93 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002786/0.2895, allocations: 223.8 kB / 433.9 MB, free: 37.77 MB / 318.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2895, allocations: 0 / 433.9 MB, free: 37.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04451/0.3341, allocations: 17.69 MB / 451.6 MB, free: 28.21 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.88, allocations: 8.969 kB / 451.6 MB, free: 28.2 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2e-05 OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe 2>&1)