Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV,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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV,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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001165/0.001165, allocations: 193.5 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 226.5 MB / 244.1 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009182/0.0009182, allocations: 103.5 kB / 296.1 MB, free: 6.867 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4471/0.4471, allocations: 44.82 MB / 393 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003035, allocations: 8 kB / 465.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4203/0.4206, allocations: 62.95 MB / 0.5165 GB, free: 37.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.651/7.072, allocations: 2.789 GB / 3.305 GB, free: 164.3 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003224/7.072, allocations: 85.42 kB / 3.305 GB, free: 164.3 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.393/8.465, allocations: 426.1 MB / 3.722 GB, free: 68.95 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.723e-06/8.465, allocations: 0 / 3.722 GB, free: 68.95 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.844e-05/8.465, allocations: 22.72 kB / 3.722 GB, free: 68.95 MB / 0.5417 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.007061/8.472, allocations: 1.863 MB / 3.723 GB, free: 68.27 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/8.472, allocations: 13.25 kB / 3.723 GB, free: 68.27 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002678/8.474, allocations: 335.7 kB / 3.724 GB, free: 68.23 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/8.476, allocations: 0.5937 MB / 3.724 GB, free: 67.98 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.383e-05/8.476, allocations: 52.78 kB / 3.724 GB, free: 67.98 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.964e-05/8.476, allocations: 60.5 kB / 3.724 GB, free: 67.98 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002302/8.478, allocations: 1.016 MB / 3.725 GB, free: 67.78 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/8.478, allocations: 11.28 kB / 3.725 GB, free: 67.78 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.476e-05/8.478, allocations: 26.94 kB / 3.725 GB, free: 67.78 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.135e-05/8.478, allocations: 21.22 kB / 3.725 GB, free: 67.77 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002278/8.481, allocations: 0.9272 MB / 3.726 GB, free: 67.77 MB / 0.5417 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005275/8.486, allocations: 4.847 MB / 3.731 GB, free: 64.57 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002451/8.488, allocations: 0.8344 MB / 3.732 GB, free: 64.54 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005706/8.489, allocations: 297.8 kB / 3.732 GB, free: 64.54 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04148/8.531, allocations: 26.65 MB / 3.758 GB, free: 47.26 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.302e-05/8.531, allocations: 38.5 kB / 3.758 GB, free: 47.22 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=47): time 3.397e-06/8.531, allocations: 0 / 3.758 GB, free: 47.22 MB / 0.5417 GB Notification: Performance of matching and sorting (n=47): time 0.008623/8.539, allocations: 1.992 MB / 3.76 GB, free: 47.04 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/8.539, allocations: 113.5 kB / 3.76 GB, free: 46.92 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008854/8.54, allocations: 0.5303 MB / 3.761 GB, free: 46.79 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001068/8.54, allocations: 39.17 kB / 3.761 GB, free: 46.76 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002809/8.541, allocations: 340.8 kB / 3.761 GB, free: 46.61 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000202/8.541, allocations: 158.7 kB / 3.761 GB, free: 46.53 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.698e-05/8.541, allocations: 10.78 kB / 3.761 GB, free: 46.53 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000138/8.541, allocations: 375.2 kB / 3.762 GB, free: 46.21 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007954/8.542, allocations: 266.9 kB / 3.762 GB, free: 46.21 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008195/8.543, allocations: 448 kB / 3.762 GB, free: 46.02 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001343/8.544, allocations: 0.6793 MB / 3.763 GB, free: 45.82 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/8.544, allocations: 7.281 kB / 3.763 GB, free: 45.82 MB / 0.5417 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002373/8.546, allocations: 0.8893 MB / 3.764 GB, free: 45.74 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001406/8.547, allocations: 241.1 kB / 3.764 GB, free: 45.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/8.547, allocations: 5.219 kB / 3.764 GB, free: 45.48 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003183/8.55, allocations: 0.5198 MB / 3.765 GB, free: 45.46 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006774/8.551, allocations: 150.9 kB / 3.765 GB, free: 45.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/8.552, allocations: 0.8473 MB / 3.766 GB, free: 44.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/8.553, allocations: 134.8 kB / 3.766 GB, free: 44.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001786/8.554, allocations: 39.3 kB / 3.766 GB, free: 44.91 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/8.554, allocations: 4.125 kB / 3.766 GB, free: 44.91 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002717/8.556, allocations: 0.8261 MB / 3.767 GB, free: 44.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/8.556, allocations: 5.219 kB / 3.767 GB, free: 44.89 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001166/8.558, allocations: 214.7 kB / 3.767 GB, free: 44.89 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006044/8.558, allocations: 160.7 kB / 3.767 GB, free: 44.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001133/8.559, allocations: 0.7636 MB / 3.768 GB, free: 44.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008778/8.56, allocations: 116 kB / 3.768 GB, free: 44.34 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.854e-05/8.56, allocations: 37.64 kB / 3.768 GB, free: 44.34 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 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0005537/8.561, allocations: 284.7 kB / 3.768 GB, free: 44.15 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002454/8.561, allocations: 64.88 kB / 3.768 GB, free: 44.12 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004313/8.565, allocations: 3.08 MB / 3.771 GB, free: 43.81 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.096e-05/8.566, allocations: 49.12 kB / 3.771 GB, free: 43.81 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/8.566, allocations: 3.031 kB / 3.771 GB, free: 43.81 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/8.566, allocations: 3.938 kB / 3.771 GB, free: 43.81 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/8.568, allocations: 1.465 MB / 3.773 GB, free: 43.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/8.568, allocations: 5.875 kB / 3.773 GB, free: 43.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003666/8.568, allocations: 93.5 kB / 3.773 GB, free: 43.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00365/8.572, allocations: 1.25 MB / 3.774 GB, free: 43.48 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.931e-05/8.572, allocations: 12.62 kB / 3.774 GB, free: 43.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001993/8.574, allocations: 1.497 MB / 3.775 GB, free: 42.93 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/8.574, allocations: 1.219 kB / 3.775 GB, free: 42.93 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003437/8.577, allocations: 2.086 MB / 3.778 GB, free: 42.63 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006692/8.578, allocations: 333.3 kB / 3.778 GB, free: 42.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000227/8.578, allocations: 14.25 kB / 3.778 GB, free: 42.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007552/8.579, allocations: 91.34 kB / 3.778 GB, free: 42.42 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/8.579, allocations: 49.58 kB / 3.778 GB, free: 42.42 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.465e-05/8.579, allocations: 21.81 kB / 3.778 GB, free: 42.42 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0007753/8.58, allocations: 480 kB / 3.778 GB, free: 42.32 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.91e-07/8.58, allocations: 0 / 3.778 GB, free: 42.32 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006904/8.587, allocations: 1.445 MB / 3.78 GB, free: 42.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 25 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.009596/8.597, allocations: 1.735 MB / 3.782 GB, free: 41.78 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004025/8.601, allocations: 1.424 MB / 3.783 GB, free: 41.75 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/8.601, allocations: 3.844 kB / 3.783 GB, free: 41.75 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001317/8.602, allocations: 0.8017 MB / 3.784 GB, free: 41.74 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002209/8.604, allocations: 330.7 kB / 3.784 GB, free: 41.73 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004021/8.608, allocations: 2.974 MB / 3.787 GB, free: 40.43 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006461/8.609, allocations: 1.136 MB / 3.788 GB, free: 39.72 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002481/8.609, allocations: 61.66 kB / 3.788 GB, free: 39.71 MB / 0.5417 GB Notification: Performance of SimCode: time 9.21e-07/8.609, allocations: 0 / 3.788 GB, free: 39.71 MB / 0.5417 GB Notification: Performance of Templates: time 0.05197/8.661, allocations: 35.86 MB / 3.823 GB, free: 37.18 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpDefaultCV/TestWaterPumpDefaultCV.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference: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 Variables in the result:Sink.ports[1].h_outflow,Sink.ports[1].m_flow,Sink.ports[1].p,Source.ports[1].h_outflow,Source.ports[1].m_flow,Source.ports[1].p,Valve.minLimiter.y,Valve.port_b.h_outflow,Valve.port_b.m_flow,Valve.port_b.p,downstreamPressure.y,pump.port_b.h_outflow,pump.port_b.m_flow,pump.port_b.p,time,valveOpening.y