Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.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.TestWaterPumpDefaultLV,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|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV,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|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 201.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.555/1.555, allocations: 226.5 MB / 245.4 MB, free: 6.434 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009559/0.0009557, allocations: 96.03 kB / 297.5 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4675/0.4675, allocations: 44.82 MB / 394.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003295/0.0003299, allocations: 4 kB / 467.9 MB, free: 12.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.534/0.5344, allocations: 62.96 MB / 0.5184 GB, free: 37.52 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.572/8.106, allocations: 2.772 GB / 3.29 GB, free: 159.2 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003703/8.107, allocations: 90.3 kB / 3.29 GB, free: 159.2 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.019/9.126, allocations: 407.4 MB / 3.688 GB, free: 33.38 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.515e-06/9.126, allocations: 0 / 3.688 GB, free: 33.38 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.886e-05/9.127, allocations: 19.94 kB / 3.688 GB, free: 33.36 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.005622/9.132, allocations: 1.712 MB / 3.69 GB, free: 31.61 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/9.132, allocations: 8.031 kB / 3.69 GB, free: 31.6 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002056/9.134, allocations: 298.7 kB / 3.69 GB, free: 31.31 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008054/9.135, allocations: 0.5506 MB / 3.69 GB, free: 30.72 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.251e-05/9.135, allocations: 50.44 kB / 3.69 GB, free: 30.68 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.088e-05/9.135, allocations: 48 kB / 3.691 GB, free: 30.63 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00192/9.137, allocations: 0.9767 MB / 3.691 GB, free: 29.59 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/9.137, allocations: 7.938 kB / 3.691 GB, free: 29.58 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.009e-05/9.137, allocations: 30.27 kB / 3.691 GB, free: 29.55 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.628e-05/9.137, allocations: 21 kB / 3.692 GB, free: 29.54 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001934/9.139, allocations: 0.8701 MB / 3.692 GB, free: 28.66 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.004006/9.143, allocations: 4.639 MB / 3.697 GB, free: 23.64 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001967/9.145, allocations: 0.7564 MB / 3.698 GB, free: 22.88 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004936/9.146, allocations: 277.8 kB / 3.698 GB, free: 22.6 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3522/9.498, allocations: 26.64 MB / 3.724 GB, free: 72.32 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.091e-05/9.498, allocations: 42.5 kB / 3.724 GB, free: 72.28 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=43): time 2.755e-06/9.498, allocations: 2.719 kB / 3.724 GB, free: 72.28 MB / 0.5417 GB Notification: Performance of matching and sorting (n=43): time 0.006302/9.504, allocations: 1.697 MB / 3.726 GB, free: 72.14 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/9.504, allocations: 109 kB / 3.726 GB, free: 72.02 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006441/9.505, allocations: 459.8 kB / 3.726 GB, free: 71.9 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.462e-05/9.505, allocations: 32.27 kB / 3.726 GB, free: 71.87 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002315/9.505, allocations: 325.8 kB / 3.726 GB, free: 71.76 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/9.506, allocations: 141 kB / 3.727 GB, free: 71.69 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.184e-05/9.506, allocations: 14.44 kB / 3.727 GB, free: 71.69 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.078e-05/9.506, allocations: 356.2 kB / 3.727 GB, free: 71.38 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006575/9.506, allocations: 223.1 kB / 3.727 GB, free: 71.38 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005374/9.507, allocations: 401.6 kB / 3.728 GB, free: 71.19 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/9.508, allocations: 0.5947 MB / 3.728 GB, free: 71.01 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/9.508, allocations: 8.031 kB / 3.728 GB, free: 71.01 MB / 0.5417 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001715/9.51, allocations: 0.7975 MB / 3.729 GB, free: 70.93 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.848e-05/9.51, allocations: 233.7 kB / 3.729 GB, free: 70.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/9.51, allocations: 11.47 kB / 3.729 GB, free: 70.68 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/9.511, allocations: 246.1 kB / 3.729 GB, free: 70.67 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003951/9.511, allocations: 126.3 kB / 3.73 GB, free: 70.67 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008619/9.512, allocations: 0.7734 MB / 3.73 GB, free: 70.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006068/9.513, allocations: 107.6 kB / 3.73 GB, free: 70.13 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.956e-05/9.513, allocations: 33.59 kB / 3.73 GB, free: 70.13 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 6.712e-06/9.513, allocations: 2.938 kB / 3.73 GB, free: 70.13 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001573/9.515, allocations: 0.7213 MB / 3.731 GB, free: 70.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/9.515, allocations: 5.531 kB / 3.731 GB, free: 70.11 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008712/9.515, allocations: 201.2 kB / 3.731 GB, free: 70.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003578/9.516, allocations: 123.1 kB / 3.731 GB, free: 70.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006997/9.517, allocations: 0.7493 MB / 3.732 GB, free: 69.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005191/9.517, allocations: 100.3 kB / 3.732 GB, free: 69.57 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.418e-05/9.517, allocations: 36.28 kB / 3.732 GB, free: 69.57 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (53): * Single equations (assignments): 52 * 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 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0003363/9.517, allocations: 277.2 kB / 3.733 GB, free: 69.38 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/9.518, allocations: 61.44 kB / 3.733 GB, free: 69.35 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003464/9.521, allocations: 2.917 MB / 3.735 GB, free: 69.09 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.161e-05/9.521, allocations: 41.33 kB / 3.736 GB, free: 69.09 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/9.521, allocations: 2.719 kB / 3.736 GB, free: 69.09 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/9.521, allocations: 2.531 kB / 3.736 GB, free: 69.09 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/9.523, allocations: 1.431 MB / 3.737 GB, free: 68.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/9.523, allocations: 3.188 kB / 3.737 GB, free: 68.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005946/9.524, allocations: 94.7 kB / 3.737 GB, free: 68.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002039/9.526, allocations: 0.6539 MB / 3.738 GB, free: 68.82 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.136e-05/9.526, allocations: 16.06 kB / 3.738 GB, free: 68.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001937/9.528, allocations: 1.211 MB / 3.739 GB, free: 68.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/9.528, allocations: 6.594 kB / 3.739 GB, free: 68.28 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004315/9.532, allocations: 1.867 MB / 3.741 GB, free: 67.98 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007947/9.533, allocations: 316.5 kB / 3.741 GB, free: 67.83 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002346/9.534, allocations: 10.31 kB / 3.741 GB, free: 67.83 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/9.535, allocations: 83.36 kB / 3.741 GB, free: 67.82 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/9.535, allocations: 47.5 kB / 3.741 GB, free: 67.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-05/9.535, allocations: 16.16 kB / 3.741 GB, free: 67.82 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0008649/9.536, allocations: 427.5 kB / 3.742 GB, free: 67.73 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.21e-07/9.536, allocations: 3.609 kB / 3.742 GB, free: 67.73 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008796/9.545, allocations: 1.361 MB / 3.743 GB, free: 67.71 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,$cse17.phase,$cse17.region,$cse18.phase,$cse18.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 (42): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 15} Notification: Performance of Backend phase and start with SimCode phase: time 0.01152/9.556, allocations: 1.675 MB / 3.745 GB, free: 67.57 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004835/9.561, allocations: 1.295 MB / 3.746 GB, free: 67.55 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/9.561, allocations: 0 / 3.746 GB, free: 67.55 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001788/9.563, allocations: 0.7825 MB / 3.747 GB, free: 67.54 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003059/9.566, allocations: 299.7 kB / 3.747 GB, free: 67.53 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005059/9.571, allocations: 2.824 MB / 3.75 GB, free: 66.31 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007995/9.572, allocations: 1.117 MB / 3.751 GB, free: 65.61 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001867/9.574, allocations: 0.6631 MB / 3.751 GB, free: 65.59 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/9.574, allocations: 55.34 kB / 3.751 GB, free: 65.59 MB / 0.5417 GB Notification: Performance of SimCode: time 1.032e-06/9.574, allocations: 0 / 3.751 GB, free: 65.59 MB / 0.5417 GB Notification: Performance of Templates: time 0.1/9.674, allocations: 43.81 MB / 3.794 GB, free: 64.25 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpDefaultLV/TestWaterPumpDefaultLV.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches