Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.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.TestWaterPumpDefault,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.TestWaterPumpDefault") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault,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.TestWaterPumpDefault") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001192/0.001192, allocations: 192.6 kB / 16.78 MB, free: 4.793 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 226.5 MB / 244.1 MB, free: 8.133 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008079/0.0008079, allocations: 88.08 kB / 296.1 MB, free: 6.883 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3935/0.3935, allocations: 44.82 MB / 393 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002763/0.0002764, allocations: 8 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4068/0.4071, allocations: 62.96 MB / 0.5165 GB, free: 37.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.538/6.945, allocations: 2.788 GB / 3.305 GB, free: 163.8 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000345/6.946, allocations: 89.05 kB / 3.305 GB, free: 163.8 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.703/8.649, allocations: 424.9 MB / 3.72 GB, free: 68.89 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.445e-06/8.649, allocations: 0 / 3.72 GB, free: 68.89 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.778e-05/8.649, allocations: 21.73 kB / 3.72 GB, free: 68.89 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.008344/8.657, allocations: 1.833 MB / 3.722 GB, free: 68.24 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/8.657, allocations: 12.97 kB / 3.722 GB, free: 68.24 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002861/8.66, allocations: 329 kB / 3.722 GB, free: 68.2 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001503/8.662, allocations: 0.5824 MB / 3.723 GB, free: 67.95 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.477e-05/8.662, allocations: 47.94 kB / 3.723 GB, free: 67.95 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/8.662, allocations: 58.44 kB / 3.723 GB, free: 67.95 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002437/8.664, allocations: 1.002 MB / 3.724 GB, free: 67.75 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/8.664, allocations: 12.88 kB / 3.724 GB, free: 67.75 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.54e-05/8.664, allocations: 22.34 kB / 3.724 GB, free: 67.75 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.072e-05/8.664, allocations: 27.06 kB / 3.724 GB, free: 67.75 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002262/8.667, allocations: 0.8983 MB / 3.725 GB, free: 67.75 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.004903/8.672, allocations: 4.801 MB / 3.729 GB, free: 64.45 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002103/8.674, allocations: 0.7021 MB / 3.73 GB, free: 64.43 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005757/8.674, allocations: 278.4 kB / 3.73 GB, free: 64.42 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04325/8.718, allocations: 26.65 MB / 3.756 GB, free: 47.14 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.74e-05/8.718, allocations: 43.95 kB / 3.756 GB, free: 47.1 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=43): time 3.417e-06/8.718, allocations: 0 / 3.756 GB, free: 47.1 MB / 0.5417 GB Notification: Performance of matching and sorting (n=43): time 0.00834/8.726, allocations: 1.745 MB / 3.758 GB, free: 46.93 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.707e-05/8.726, allocations: 108.6 kB / 3.758 GB, free: 46.8 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001116/8.727, allocations: 0.5162 MB / 3.759 GB, free: 46.68 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.615e-05/8.727, allocations: 37.52 kB / 3.759 GB, free: 46.64 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002742/8.728, allocations: 333.8 kB / 3.759 GB, free: 46.5 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001936/8.728, allocations: 146.9 kB / 3.759 GB, free: 46.42 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.785e-05/8.728, allocations: 11.78 kB / 3.759 GB, free: 46.42 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000133/8.728, allocations: 364.3 kB / 3.76 GB, free: 46.11 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006379/8.729, allocations: 238.8 kB / 3.76 GB, free: 46.11 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007622/8.729, allocations: 420 kB / 3.76 GB, free: 45.91 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/8.731, allocations: 0.6445 MB / 3.761 GB, free: 45.71 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.196e-06/8.731, allocations: 0 / 3.761 GB, free: 45.71 MB / 0.5417 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002034/8.733, allocations: 0.81 MB / 3.762 GB, free: 45.64 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001555/8.733, allocations: 235.2 kB / 3.762 GB, free: 45.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/8.733, allocations: 4.531 kB / 3.762 GB, free: 45.38 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001946/8.735, allocations: 356.7 kB / 3.762 GB, free: 45.36 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005234/8.735, allocations: 134.6 kB / 3.762 GB, free: 45.36 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001053/8.737, allocations: 0.7965 MB / 3.763 GB, free: 44.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009407/8.737, allocations: 125 kB / 3.763 GB, free: 44.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.347e-05/8.738, allocations: 38.25 kB / 3.763 GB, free: 44.82 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/8.738, allocations: 3.312 kB / 3.763 GB, free: 44.82 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002227/8.74, allocations: 0.7614 MB / 3.764 GB, free: 44.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/8.74, allocations: 5.469 kB / 3.764 GB, free: 44.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001055/8.741, allocations: 206.6 kB / 3.764 GB, free: 44.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000507/8.741, allocations: 144.9 kB / 3.764 GB, free: 44.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008863/8.742, allocations: 0.7521 MB / 3.765 GB, free: 44.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007888/8.743, allocations: 116.3 kB / 3.765 GB, free: 44.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.652e-05/8.743, allocations: 31.56 kB / 3.765 GB, free: 44.25 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 (55): * Single equations (assignments): 54 * 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.0004983/8.744, allocations: 282.6 kB / 3.765 GB, free: 44.05 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002084/8.744, allocations: 60.91 kB / 3.765 GB, free: 44.03 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004602/8.749, allocations: 3.012 MB / 3.768 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.506e-05/8.749, allocations: 44.88 kB / 3.768 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/8.749, allocations: 7.688 kB / 3.768 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/8.749, allocations: 2.625 kB / 3.768 GB, free: 43.73 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002288/8.751, allocations: 1.451 MB / 3.77 GB, free: 43.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/8.751, allocations: 0.5156 kB / 3.77 GB, free: 43.44 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003725/8.751, allocations: 89.59 kB / 3.77 GB, free: 43.44 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002786/8.754, allocations: 1.055 MB / 3.771 GB, free: 43.41 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.177e-05/8.754, allocations: 18.02 kB / 3.771 GB, free: 43.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001676/8.756, allocations: 1.443 MB / 3.772 GB, free: 42.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/8.756, allocations: 0 / 3.772 GB, free: 42.86 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003873/8.76, allocations: 2.031 MB / 3.774 GB, free: 42.55 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006394/8.761, allocations: 325.9 kB / 3.775 GB, free: 42.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/8.761, allocations: 11.69 kB / 3.775 GB, free: 42.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005489/8.761, allocations: 82.48 kB / 3.775 GB, free: 42.35 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/8.761, allocations: 48.84 kB / 3.775 GB, free: 42.35 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.14e-05/8.761, allocations: 25.7 kB / 3.775 GB, free: 42.35 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0007399/8.762, allocations: 464.4 kB / 3.775 GB, free: 42.25 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.41e-07/8.762, allocations: 0 / 3.775 GB, free: 42.25 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006933/8.769, allocations: 1.432 MB / 3.777 GB, free: 42.03 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,$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 (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 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.0101/8.779, allocations: 1.721 MB / 3.778 GB, free: 41.72 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003047/8.782, allocations: 1.323 MB / 3.78 GB, free: 41.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/8.782, allocations: 0 / 3.78 GB, free: 41.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001052/8.783, allocations: 0.789 MB / 3.78 GB, free: 41.68 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0019/8.785, allocations: 330.2 kB / 3.781 GB, free: 41.68 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003882/8.789, allocations: 2.922 MB / 3.784 GB, free: 40.38 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005688/8.79, allocations: 1.132 MB / 3.785 GB, free: 39.68 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/8.79, allocations: 68.22 kB / 3.785 GB, free: 39.67 MB / 0.5417 GB Notification: Performance of SimCode: time 1.142e-06/8.79, allocations: 0 / 3.785 GB, free: 39.67 MB / 0.5417 GB Notification: Performance of Templates: time 0.05462/8.845, allocations: 35.39 MB / 3.819 GB, free: 37.22 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpDefault/TestWaterPumpDefault.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches