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.005157/0.005157, allocations: 99.72 kB / 15.73 MB, free: 6.02 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.001067/0.001067, allocations: 194.7 kB / 16.67 MB, free: 5.93 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.317/1.317, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05556/0.05556, allocations: 11.84 MB / 281.8 MB, free: 9.359 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.001584/0.001584, allocations: 74.23 kB / 391.8 MB, free: 3.988 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2354, allocations: 49.23 MB / 441.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.004739/0.2402, allocations: 4.403 MB / 445.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003764/0.244, allocations: 2.696 MB / 448.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004651/0.2444, allocations: 11.62 kB / 448.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005146/0.245, allocations: 150.2 kB / 448.3 MB, free: 15.05 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.0009834/0.246, allocations: 356 kB / 448.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001449/0.2475, allocations: 0.5702 MB / 449.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00114/0.2486, allocations: 1.109 MB / 450.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004396/0.2491, allocations: 331.9 kB / 450.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005441/0.2496, allocations: 396.8 kB / 451.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005235/0.2502, allocations: 455.5 kB / 451.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.2503, allocations: 84.81 kB / 451.6 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006004/0.2509, allocations: 297.6 kB / 451.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001896/0.2511, allocations: 205.7 kB / 452.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003933/0.2515, allocations: 439.5 kB / 452.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001295/0.2528, allocations: 1.183 MB / 453.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2528, allocations: 1 kB / 453.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2528, allocations: 4 kB / 453.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.2529, allocations: 0 / 453.7 MB, free: 11.7 MB / 334.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.001891/0.2548, allocations: 1.099 MB / 454.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.2548, allocations: 16.92 kB / 454.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001227/0.2549, allocations: 107 kB / 454.9 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002082/0.2552, allocations: 86.45 kB / 455 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007192/0.2559, allocations: 0.507 MB / 455.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.064e-05/0.2559, allocations: 49.05 kB / 455.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.2561, allocations: 57.92 kB / 455.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.2572, allocations: 0.6906 MB / 456.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.2572, allocations: 0 / 456.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.495e-05/0.2573, allocations: 21.16 kB / 456.3 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.2573, allocations: 14.22 kB / 456.3 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009428/0.2583, allocations: 0.5393 MB / 456.9 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004122/0.2624, allocations: 3.395 MB / 460.3 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009786/0.2634, allocations: 0.5015 MB / 460.8 MB, free: 5.895 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00035/0.2638, allocations: 189.6 kB / 461 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001214/0.2639, allocations: 93.59 kB / 461.1 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.264, allocations: 37.16 kB / 461.1 MB, free: 5.652 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 3.647e-06/0.264, allocations: 3.984 kB / 461.1 MB, free: 5.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=43): time 0.003092/0.2671, allocations: 1.463 MB / 462.6 MB, free: 4.613 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.2671, allocations: 89.03 kB / 462.7 MB, free: 4.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006532/0.2678, allocations: 0.5764 MB / 463.2 MB, free: 4.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.898e-05/0.2678, allocations: 42.14 kB / 463.3 MB, free: 4.129 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002281/0.2681, allocations: 311.2 kB / 463.6 MB, free: 3.855 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.2682, allocations: 160.8 kB / 463.7 MB, free: 3.715 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000164/0.2684, allocations: 95 kB / 463.8 MB, free: 3.652 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.2685, allocations: 364.1 kB / 464.2 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000339/0.2689, allocations: 185 kB / 464.4 MB, free: 3.199 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003961/0.2693, allocations: 280.6 kB / 464.6 MB, free: 2.969 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00277/0.2721, allocations: 1.032 MB / 465.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2721, allocations: 0 / 465.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009585/0.2731, allocations: 0.584 MB / 466.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/0.2731, allocations: 33.64 kB / 466.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.2731, allocations: 4 kB / 466.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001992/0.2733, allocations: 96.81 kB / 466.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/0.2737, allocations: 100.2 kB / 466.5 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001729/0.2755, allocations: 1.783 MB / 468.3 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000477/0.276, allocations: 43.89 kB / 468.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/0.276, allocations: 23.98 kB / 468.3 MB, free: 15.19 MB / 350.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.0004132/0.2764, allocations: 270.5 kB / 468.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.2766, allocations: 67.61 kB / 468.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001034/0.2776, allocations: 0.5492 MB / 469.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.2776, allocations: 11.94 kB / 469.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.2776, allocations: 0 / 469.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.2776, allocations: 0 / 469.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001934/0.2796, allocations: 1.277 MB / 470.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2796, allocations: 4.094 kB / 470.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003941/0.28, allocations: 83.89 kB / 470.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001434/0.2801, allocations: 80.81 kB / 470.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.545e-05/0.2802, allocations: 19.98 kB / 470.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001408/0.2816, allocations: 1.59 MB / 472.3 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.2816, allocations: 7.969 kB / 472.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001171/0.2828, allocations: 0.8196 MB / 473.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002468/0.2831, allocations: 188.7 kB / 473.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.9e-05/0.2832, allocations: 20 kB / 473.3 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003796/0.2836, allocations: 31.95 kB / 473.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002188/0.2838, allocations: 131.8 kB / 473.5 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.268e-05/0.2838, allocations: 15.98 kB / 473.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004369/0.2843, allocations: 418.8 kB / 473.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2843, allocations: 0 / 473.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006828/0.285, allocations: 203.7 kB / 474.1 MB, free: 9.137 MB / 350.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.002253/0.2872, allocations: 1.693 MB / 475.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009728/0.2882, allocations: 0.579 MB / 476.4 MB, free: 6.859 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2882, allocations: 4 kB / 476.4 MB, free: 6.855 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005058/0.2887, allocations: 393.9 kB / 476.7 MB, free: 6.445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008537/0.2896, allocations: 186.2 kB / 476.9 MB, free: 6.258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007453/0.2971, allocations: 5.572 MB / 482.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004912/0.2976, allocations: 0.9299 MB / 483.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003235/0.2979, allocations: 93.02 kB / 483.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003186/0.2982, allocations: 227.3 kB / 483.7 MB, free: 15.22 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2982, allocations: 0 / 483.7 MB, free: 15.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04125/0.3395, allocations: 18.01 MB / 0.49 GB, free: 13.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/12.44, allocations: 12.61 kB / 0.49 GB, free: 13.14 MB / 382.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)