Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.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.TestWaterPumpVariableSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|N_pump.y|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",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|N_pump.y|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",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001531/0.001531, allocations: 193.5 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.617/1.617, allocations: 226.5 MB / 244.1 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001147/0.001147, allocations: 100.4 kB / 296.1 MB, free: 6.703 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3779/0.3779, allocations: 44.82 MB / 393 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002922/0.0002922, allocations: 8 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4219/0.4222, allocations: 62.95 MB / 0.5165 GB, free: 37.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.113/5.535, allocations: 2.788 GB / 3.305 GB, free: 164.1 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/5.535, allocations: 95.23 kB / 3.305 GB, free: 164.1 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.32/6.855, allocations: 425.1 MB / 3.72 GB, free: 68.74 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.784e-06/6.855, allocations: 0 / 3.72 GB, free: 68.74 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.047e-05/6.855, allocations: 24.28 kB / 3.72 GB, free: 68.74 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.006644/6.862, allocations: 1.851 MB / 3.722 GB, free: 68.09 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/6.862, allocations: 9.469 kB / 3.722 GB, free: 68.09 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002475/6.864, allocations: 336.9 kB / 3.722 GB, free: 68.05 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/6.865, allocations: 0.5768 MB / 3.723 GB, free: 67.8 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.8e-05/6.865, allocations: 50.41 kB / 3.723 GB, free: 67.8 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.197e-05/6.866, allocations: 55.56 kB / 3.723 GB, free: 67.8 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002205/6.868, allocations: 1.023 MB / 3.724 GB, free: 67.6 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/6.868, allocations: 3.938 kB / 3.724 GB, free: 67.6 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-05/6.868, allocations: 27.97 kB / 3.724 GB, free: 67.6 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.054e-05/6.868, allocations: 25.28 kB / 3.724 GB, free: 67.59 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002291/6.87, allocations: 0.9384 MB / 3.725 GB, free: 67.59 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.004973/6.875, allocations: 4.764 MB / 3.73 GB, free: 64.45 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002398/6.878, allocations: 0.8311 MB / 3.73 GB, free: 64.43 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006277/6.878, allocations: 304.3 kB / 3.731 GB, free: 64.42 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04174/6.92, allocations: 26.72 MB / 3.757 GB, free: 47.05 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.442e-05/6.92, allocations: 40.91 kB / 3.757 GB, free: 47.01 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=45): time 4.268e-06/6.92, allocations: 4.594 kB / 3.757 GB, free: 47.01 MB / 0.5417 GB Notification: Performance of matching and sorting (n=45): time 0.007496/6.928, allocations: 1.792 MB / 3.759 GB, free: 46.84 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/6.928, allocations: 114.9 kB / 3.759 GB, free: 46.71 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008665/6.929, allocations: 0.5119 MB / 3.759 GB, free: 46.59 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.836e-05/6.929, allocations: 35.27 kB / 3.759 GB, free: 46.55 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002313/6.929, allocations: 336.2 kB / 3.759 GB, free: 46.41 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/6.929, allocations: 151 kB / 3.76 GB, free: 46.33 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.798e-05/6.929, allocations: 12.88 kB / 3.76 GB, free: 46.33 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000122/6.929, allocations: 370.3 kB / 3.76 GB, free: 46.02 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006627/6.93, allocations: 251.6 kB / 3.76 GB, free: 46.02 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007592/6.931, allocations: 441.7 kB / 3.761 GB, free: 45.81 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/6.932, allocations: 0.6774 MB / 3.761 GB, free: 45.61 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/6.932, allocations: 0 / 3.761 GB, free: 45.61 MB / 0.5417 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002173/6.934, allocations: 0.8508 MB / 3.762 GB, free: 45.53 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001452/6.934, allocations: 255 kB / 3.762 GB, free: 45.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/6.934, allocations: 8.406 kB / 3.762 GB, free: 45.25 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001953/6.936, allocations: 346.8 kB / 3.763 GB, free: 45.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005675/6.937, allocations: 144 kB / 3.763 GB, free: 45.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/6.938, allocations: 0.7988 MB / 3.764 GB, free: 44.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000895/6.939, allocations: 124.8 kB / 3.764 GB, free: 44.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.702e-05/6.939, allocations: 34 kB / 3.764 GB, free: 44.7 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/6.939, allocations: 3.906 kB / 3.764 GB, free: 44.7 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002465/6.942, allocations: 0.7879 MB / 3.765 GB, free: 44.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/6.942, allocations: 5.656 kB / 3.765 GB, free: 44.68 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00112/6.943, allocations: 215.7 kB / 3.765 GB, free: 44.68 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005919/6.943, allocations: 153.1 kB / 3.765 GB, free: 44.67 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009832/6.944, allocations: 0.7547 MB / 3.766 GB, free: 44.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008901/6.945, allocations: 116.9 kB / 3.766 GB, free: 44.12 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.799e-05/6.945, allocations: 33.05 kB / 3.766 GB, free: 44.12 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (56): * Single equations (assignments): 55 * 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.0005055/6.946, allocations: 289.3 kB / 3.766 GB, free: 43.93 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001869/6.946, allocations: 63.59 kB / 3.766 GB, free: 43.9 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004398/6.951, allocations: 2.901 MB / 3.769 GB, free: 43.59 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.332e-05/6.951, allocations: 35.41 kB / 3.769 GB, free: 43.59 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/6.951, allocations: 0 / 3.769 GB, free: 43.59 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/6.951, allocations: 2.672 kB / 3.769 GB, free: 43.59 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/6.953, allocations: 1.379 MB / 3.77 GB, free: 43.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/6.953, allocations: 4.688 kB / 3.77 GB, free: 43.31 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004466/6.954, allocations: 106.1 kB / 3.77 GB, free: 43.31 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002444/6.956, allocations: 1.062 MB / 3.772 GB, free: 43.28 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.602e-05/6.956, allocations: 16.11 kB / 3.772 GB, free: 43.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001686/6.958, allocations: 1.444 MB / 3.773 GB, free: 42.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/6.958, allocations: 3.938 kB / 3.773 GB, free: 42.73 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002966/6.961, allocations: 1.888 MB / 3.775 GB, free: 42.43 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005846/6.961, allocations: 368.4 kB / 3.775 GB, free: 42.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/6.961, allocations: 10.28 kB / 3.775 GB, free: 42.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005853/6.962, allocations: 92.02 kB / 3.775 GB, free: 42.22 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/6.962, allocations: 55.36 kB / 3.775 GB, free: 42.22 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.934e-05/6.962, allocations: 17.47 kB / 3.775 GB, free: 42.22 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0006654/6.963, allocations: 0.559 MB / 3.776 GB, free: 42.12 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/6.963, allocations: 3.875 kB / 3.776 GB, free: 42.12 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006022/6.969, allocations: 1.439 MB / 3.777 GB, free: 41.91 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: 21 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.009296/6.978, allocations: 1.723 MB / 3.779 GB, free: 41.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003377/6.982, allocations: 1.304 MB / 3.78 GB, free: 41.57 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.842e-06/6.982, allocations: 0 / 3.78 GB, free: 41.57 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001087/6.983, allocations: 0.7122 MB / 3.781 GB, free: 41.55 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00198/6.985, allocations: 342.3 kB / 3.781 GB, free: 41.55 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00364/6.989, allocations: 2.817 MB / 3.784 GB, free: 40.28 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00047/6.989, allocations: 1.12 MB / 3.785 GB, free: 39.57 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002034/6.989, allocations: 61.53 kB / 3.785 GB, free: 39.57 MB / 0.5417 GB Notification: Performance of SimCode: time 6.71e-07/6.989, allocations: 0 / 3.785 GB, free: 39.57 MB / 0.5417 GB Notification: Performance of Templates: time 0.04956/7.039, allocations: 35.72 MB / 3.82 GB, free: 37.07 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpVariableSpeed/TestWaterPumpVariableSpeed.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,N_pump.y,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 Variables in the result:N_pump.y,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,pump.port_b.h_outflow,pump.port_b.m_flow,pump.port_b.p,time,valveOpening.y