Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valveOpening.y|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|Valve.minLimiter.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valveOpening.y|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|Valve.minLimiter.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 187.8 kB / 8.524 MB, free: 1.762 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.206/1.206, allocations: 221.4 MB / 230.3 MB, free: 3.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000979/0.0009791, allocations: 89.22 kB / 281.2 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3799/0.3799, allocations: 44.14 MB / 376.1 MB, free: 43.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.794e-06/7.814e-06, allocations: 0 / 444 MB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3938/0.3938, allocations: 61.91 MB / 0.4941 GB, free: 42.46 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.862/6.256, allocations: 2.791 GB / 3.286 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003314/6.257, allocations: 84.81 kB / 3.286 GB, free: 137.8 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.508/7.765, allocations: 441.1 MB / 3.716 GB, free: 57.66 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.515e-05/7.765, allocations: 22.97 kB / 3.716 GB, free: 57.65 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.007097/7.772, allocations: 1.768 MB / 3.718 GB, free: 56.81 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/7.772, allocations: 10.97 kB / 3.718 GB, free: 56.81 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003129/7.775, allocations: 367.7 kB / 3.718 GB, free: 56.77 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00139/7.777, allocations: 0.5824 MB / 3.719 GB, free: 56.51 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.473e-05/7.777, allocations: 27.41 kB / 3.719 GB, free: 56.51 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/7.777, allocations: 33.2 kB / 3.719 GB, free: 56.51 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001239/7.778, allocations: 0.5531 MB / 3.72 GB, free: 56.51 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/7.78, allocations: 0.6757 MB / 3.72 GB, free: 56.31 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/7.78, allocations: 6.5 kB / 3.72 GB, free: 56.31 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.23e-05/7.78, allocations: 3.781 kB / 3.72 GB, free: 56.31 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.322e-05/7.78, allocations: 22.66 kB / 3.72 GB, free: 56.31 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08659/7.866, allocations: 44.51 MB / 3.764 GB, free: 28.18 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005715/7.867, allocations: 324.8 kB / 3.764 GB, free: 28.16 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003205/7.867, allocations: 204.2 kB / 3.764 GB, free: 28.15 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04791/7.915, allocations: 24.21 MB / 3.788 GB, free: 27.9 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.528e-05/7.915, allocations: 41.84 kB / 3.788 GB, free: 27.86 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=42): time 2.925e-06/7.915, allocations: 0 / 3.788 GB, free: 27.86 MB / 0.5417 GB Notification: Performance of matching and sorting (n=42): time 0.003068/7.918, allocations: 0.8197 MB / 3.789 GB, free: 27.58 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.732e-05/7.918, allocations: 112 kB / 3.789 GB, free: 27.45 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006761/7.919, allocations: 424.6 kB / 3.789 GB, free: 27.23 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.297e-05/7.919, allocations: 25.7 kB / 3.789 GB, free: 27.2 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001779/7.919, allocations: 289.8 kB / 3.79 GB, free: 26.97 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/7.92, allocations: 137.2 kB / 3.79 GB, free: 26.86 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-05/7.92, allocations: 4 kB / 3.79 GB, free: 26.86 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001565/7.92, allocations: 365.6 kB / 3.79 GB, free: 26.52 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003103/7.92, allocations: 196 kB / 3.79 GB, free: 26.45 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00039/7.92, allocations: 376.8 kB / 3.791 GB, free: 26.14 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/7.922, allocations: 339.6 kB / 3.791 GB, free: 26.03 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/7.922, allocations: 0 / 3.791 GB, free: 26.03 MB / 0.5417 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002919/7.925, allocations: 1.065 MB / 3.792 GB, free: 25.66 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000773/7.926, allocations: 2.003 MB / 3.794 GB, free: 23.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/7.926, allocations: 6.688 kB / 3.794 GB, free: 23.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008019/7.926, allocations: 177.1 kB / 3.794 GB, free: 23.48 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005345/7.927, allocations: 148.4 kB / 3.794 GB, free: 23.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001621/7.929, allocations: 0.8994 MB / 3.795 GB, free: 22.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009386/7.93, allocations: 124.5 kB / 3.795 GB, free: 22.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.568e-05/7.93, allocations: 44.34 kB / 3.795 GB, free: 22.77 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/7.93, allocations: 3.875 kB / 3.795 GB, free: 22.77 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002606/7.932, allocations: 0.755 MB / 3.796 GB, free: 22.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/7.932, allocations: 5.156 kB / 3.796 GB, free: 22.53 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008587/7.933, allocations: 173.3 kB / 3.796 GB, free: 22.49 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000512/7.934, allocations: 151.9 kB / 3.796 GB, free: 22.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008479/7.935, allocations: 0.7761 MB / 3.797 GB, free: 21.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008029/7.935, allocations: 105 kB / 3.797 GB, free: 21.83 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.507e-05/7.935, allocations: 34.56 kB / 3.797 GB, free: 21.82 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 6 (Sink.medium.phase,pump.heatTransfer.states[1].phase,Source.medium.phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002401/7.936, allocations: 135 kB / 3.797 GB, free: 21.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008061/7.936, allocations: 268.3 kB / 3.798 GB, free: 21.62 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003295/7.94, allocations: 2.549 MB / 3.8 GB, free: 20.57 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.148e-05/7.94, allocations: 21.55 kB / 3.8 GB, free: 20.57 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/7.94, allocations: 0 / 3.8 GB, free: 20.57 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/7.94, allocations: 7.312 kB / 3.8 GB, free: 20.57 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003867/7.944, allocations: 3.215 MB / 3.803 GB, free: 19.08 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/7.944, allocations: 7.75 kB / 3.803 GB, free: 19.07 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002699/7.944, allocations: 70.56 kB / 3.803 GB, free: 19.07 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001156/7.945, allocations: 0.6599 MB / 3.804 GB, free: 18.91 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.94e-05/7.945, allocations: 8.984 kB / 3.804 GB, free: 18.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001629/7.947, allocations: 1.267 MB / 3.805 GB, free: 18.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/7.947, allocations: 0 / 3.805 GB, free: 18.1 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003606/7.95, allocations: 1.984 MB / 3.807 GB, free: 17.21 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005632/7.951, allocations: 277.3 kB / 3.807 GB, free: 17 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001832/7.951, allocations: 6.5 kB / 3.807 GB, free: 17 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006847/7.952, allocations: 64.25 kB / 3.808 GB, free: 16.99 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/7.952, allocations: 43.41 kB / 3.808 GB, free: 16.98 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.991e-05/7.952, allocations: 27.03 kB / 3.808 GB, free: 16.98 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0006185/7.953, allocations: 389.7 kB / 3.808 GB, free: 16.78 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008353/7.961, allocations: 1.416 MB / 3.809 GB, free: 16.48 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01103/7.972, allocations: 1.876 MB / 3.811 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003193/7.975, allocations: 1.354 MB / 3.813 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/7.975, allocations: 0.5312 kB / 3.813 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0011/7.977, allocations: 0.9143 MB / 3.813 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001806/7.978, allocations: 264.8 kB / 3.814 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003036/7.981, allocations: 1.59 MB / 3.815 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009082/7.982, allocations: 1.125 MB / 3.816 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of SimCode: time 7.41e-07/7.982, allocations: 0 / 3.816 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of Templates: time 0.3026/8.285, allocations: 44.22 MB / 3.859 GB, free: 120.9 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpNPSH/TestWaterPumpNPSH.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches