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.00706/0.00706, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.001673/0.001673, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.257/1.257, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05223/0.05223, allocations: 11.84 MB / 281.7 MB, free: 9.336 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.001397/0.001397, allocations: 63.91 kB / 391.8 MB, free: 3.969 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2393, allocations: 49.22 MB / 441.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.00466/0.244, allocations: 4.406 MB / 445.5 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003683/0.2477, allocations: 2.711 MB / 448.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003434/0.2481, allocations: 11.06 kB / 448.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004805/0.2486, allocations: 153.9 kB / 448.3 MB, free: 15.03 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.000741/0.2493, allocations: 330.4 kB / 448.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001214/0.2506, allocations: 0.568 MB / 449.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001016/0.2516, allocations: 1.105 MB / 450.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004334/0.252, allocations: 324.2 kB / 450.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004716/0.2525, allocations: 407.8 kB / 451.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000478/0.253, allocations: 449 kB / 451.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.973e-05/0.2531, allocations: 83.34 kB / 451.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005097/0.2536, allocations: 305.8 kB / 451.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000172/0.2538, allocations: 205 kB / 452.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003937/0.2542, allocations: 439.5 kB / 452.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00115/0.2554, allocations: 1.173 MB / 453.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.2554, allocations: 9.172 kB / 453.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2554, allocations: 0 / 453.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.2554, 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.001749/0.2572, allocations: 1.08 MB / 454.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.2572, allocations: 13.55 kB / 454.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001062/0.2573, allocations: 98.77 kB / 454.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002001/0.2575, allocations: 82.19 kB / 455 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006497/0.2582, allocations: 0.5103 MB / 455.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.2582, allocations: 45.5 kB / 455.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.27e-05/0.2583, allocations: 57.66 kB / 455.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.2594, allocations: 0.6751 MB / 456.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/0.2594, allocations: 11.89 kB / 456.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.547e-05/0.2595, allocations: 25.41 kB / 456.3 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.2595, allocations: 14.78 kB / 456.3 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009458/0.2605, allocations: 0.5423 MB / 456.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003943/0.2644, allocations: 3.383 MB / 460.2 MB, free: 6.262 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008667/0.2653, allocations: 0.4969 MB / 460.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003173/0.2656, allocations: 194 kB / 460.9 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001098/0.2658, allocations: 89.56 kB / 461 MB, free: 5.746 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.2658, allocations: 45.52 kB / 461 MB, free: 5.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 2.575e-06/0.2658, allocations: 0 / 461 MB, free: 5.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=43): time 0.003049/0.2689, allocations: 1.458 MB / 462.5 MB, free: 4.664 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.2689, allocations: 81.45 kB / 462.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007188/0.2697, allocations: 0.572 MB / 463.1 MB, free: 4.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.008e-05/0.2697, allocations: 46.06 kB / 463.2 MB, free: 4.188 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002389/0.27, allocations: 298.5 kB / 463.5 MB, free: 3.926 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.2701, allocations: 155.8 kB / 463.6 MB, free: 3.789 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.2703, allocations: 94.62 kB / 463.7 MB, free: 3.727 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.2704, allocations: 368.5 kB / 464.1 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003364/0.2708, allocations: 181.6 kB / 464.3 MB, free: 3.273 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003916/0.2712, allocations: 280.2 kB / 464.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00279/0.274, allocations: 1.034 MB / 465.6 MB, free: 2.074 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.274, allocations: 7.938 kB / 465.6 MB, free: 2.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001004/0.275, allocations: 0.5722 MB / 466.1 MB, free: 1.477 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.001e-05/0.2751, allocations: 40.67 kB / 466.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.2751, allocations: 4 kB / 466.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001983/0.2753, allocations: 100.8 kB / 466.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004178/0.2757, allocations: 103.8 kB / 466.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00172/0.2774, allocations: 1.775 MB / 468.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004584/0.2779, allocations: 47.89 kB / 468.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.736e-05/0.278, allocations: 20 kB / 468.2 MB, free: 15.25 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.0004136/0.2784, allocations: 274.4 kB / 468.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.2785, allocations: 59.25 kB / 468.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009902/0.2795, allocations: 0.5375 MB / 469.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.291e-06/0.2795, allocations: 8.031 kB / 469.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.2795, allocations: 4 kB / 469.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.228e-06/0.2795, allocations: 7.969 kB / 469.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001823/0.2813, allocations: 1.289 MB / 470.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.2814, allocations: 0 / 470.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003951/0.2818, allocations: 83.98 kB / 470.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001366/0.2819, allocations: 88.77 kB / 470.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.411e-05/0.282, allocations: 15.98 kB / 470.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.2833, allocations: 1.586 MB / 472.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.2833, allocations: 3.938 kB / 472.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.2845, allocations: 0.8154 MB / 473 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002334/0.2847, allocations: 188.4 kB / 473.2 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.144e-05/0.2848, allocations: 20 kB / 473.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003616/0.2852, allocations: 35.95 kB / 473.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002317/0.2854, allocations: 127.7 kB / 473.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.328e-05/0.2855, allocations: 23.98 kB / 473.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004384/0.2859, allocations: 410.8 kB / 473.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2859, allocations: 0 / 473.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006711/0.2866, allocations: 203.9 kB / 474 MB, free: 9.199 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.002265/0.2889, allocations: 1.699 MB / 475.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009361/0.2898, allocations: 0.5745 MB / 476.3 MB, free: 6.926 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2898, allocations: 0 / 476.3 MB, free: 6.926 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004643/0.2903, allocations: 394.6 kB / 476.6 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007958/0.2911, allocations: 186.1 kB / 476.8 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006756/0.2979, allocations: 5.543 MB / 482.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004678/0.2984, allocations: 0.922 MB / 483.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003322/0.2987, allocations: 104.9 kB / 483.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003048/0.299, allocations: 227.4 kB / 483.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.299, allocations: 0 / 483.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04284/0.3419, allocations: 18.27 MB / 0.4901 GB, free: 13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.07, allocations: 8.719 kB / 0.4901 GB, free: 12.99 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe 2>&1)