Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.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.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_trunk_cpp_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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001705/0.001705, allocations: 197.7 kB / 16.79 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.472/1.472, allocations: 226.5 MB / 244.1 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009173/0.0009175, allocations: 102.2 kB / 296.1 MB, free: 6.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4185/0.4185, allocations: 44.82 MB / 392.9 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002754/0.0002754, allocations: 8 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.437/0.4373, allocations: 62.95 MB / 0.5165 GB, free: 37.08 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.552/6.989, allocations: 2.794 GB / 3.31 GB, free: 166.5 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003945/6.989, allocations: 87.53 kB / 3.31 GB, free: 166.5 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.324/8.313, allocations: 425.9 MB / 3.726 GB, free: 68.61 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.485e-06/8.313, allocations: 2.531 kB / 3.726 GB, free: 68.61 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.674e-05/8.313, allocations: 22.61 kB / 3.726 GB, free: 68.61 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.006136/8.32, allocations: 1.848 MB / 3.728 GB, free: 67.96 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/8.32, allocations: 8.062 kB / 3.728 GB, free: 67.96 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002551/8.322, allocations: 349.2 kB / 3.728 GB, free: 67.93 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009924/8.323, allocations: 0.5905 MB / 3.729 GB, free: 67.68 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.504e-05/8.323, allocations: 52.97 kB / 3.729 GB, free: 67.68 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.635e-05/8.323, allocations: 57.25 kB / 3.729 GB, free: 67.68 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002089/8.325, allocations: 1.015 MB / 3.73 GB, free: 67.48 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/8.325, allocations: 5.906 kB / 3.73 GB, free: 67.48 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.781e-05/8.325, allocations: 28.59 kB / 3.73 GB, free: 67.48 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.044e-05/8.326, allocations: 28.61 kB / 3.73 GB, free: 67.47 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002141/8.328, allocations: 0.9155 MB / 3.731 GB, free: 67.47 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.004478/8.332, allocations: 4.918 MB / 3.736 GB, free: 64.11 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00214/8.334, allocations: 0.778 MB / 3.736 GB, free: 64.08 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005727/8.335, allocations: 299 kB / 3.737 GB, free: 64.07 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04246/8.377, allocations: 26.77 MB / 3.763 GB, free: 46.7 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.675e-05/8.377, allocations: 38.41 kB / 3.763 GB, free: 46.66 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=46): time 3.487e-06/8.377, allocations: 0 / 3.763 GB, free: 46.66 MB / 0.5417 GB Notification: Performance of matching and sorting (n=46): time 0.007303/8.385, allocations: 1.726 MB / 3.765 GB, free: 46.49 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/8.385, allocations: 120.2 kB / 3.765 GB, free: 46.36 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009167/8.386, allocations: 0.5133 MB / 3.765 GB, free: 46.23 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.759e-05/8.386, allocations: 36.05 kB / 3.765 GB, free: 46.2 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002183/8.386, allocations: 330.7 kB / 3.765 GB, free: 46.05 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/8.386, allocations: 160.6 kB / 3.766 GB, free: 45.97 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.153e-05/8.386, allocations: 8.75 kB / 3.766 GB, free: 45.97 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001122/8.386, allocations: 373.2 kB / 3.766 GB, free: 45.66 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006389/8.387, allocations: 242.6 kB / 3.766 GB, free: 45.66 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007123/8.388, allocations: 430.8 kB / 3.767 GB, free: 45.46 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001349/8.389, allocations: 0.6599 MB / 3.767 GB, free: 45.27 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.166e-06/8.389, allocations: 1.406 kB / 3.767 GB, free: 45.27 MB / 0.5417 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002096/8.391, allocations: 0.8333 MB / 3.768 GB, free: 45.19 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001435/8.391, allocations: 242.7 kB / 3.768 GB, free: 44.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/8.392, allocations: 8.188 kB / 3.768 GB, free: 44.92 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001921/8.393, allocations: 341.8 kB / 3.769 GB, free: 44.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005193/8.394, allocations: 142.4 kB / 3.769 GB, free: 44.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/8.395, allocations: 0.799 MB / 3.77 GB, free: 44.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008443/8.396, allocations: 126 kB / 3.77 GB, free: 44.37 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.868e-05/8.396, allocations: 34.64 kB / 3.77 GB, free: 44.37 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.809e-06/8.396, allocations: 7.094 kB / 3.77 GB, free: 44.37 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001843/8.398, allocations: 0.7727 MB / 3.771 GB, free: 44.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/8.398, allocations: 8.094 kB / 3.771 GB, free: 44.35 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/8.399, allocations: 208.1 kB / 3.771 GB, free: 44.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005427/8.4, allocations: 142 kB / 3.771 GB, free: 44.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000879/8.4, allocations: 0.7556 MB / 3.772 GB, free: 43.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008394/8.401, allocations: 111.5 kB / 3.772 GB, free: 43.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.355e-05/8.401, allocations: 36.02 kB / 3.772 GB, free: 43.8 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 (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.0005073/8.402, allocations: 283.2 kB / 3.772 GB, free: 43.61 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002011/8.402, allocations: 66.94 kB / 3.772 GB, free: 43.58 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004642/8.407, allocations: 3.055 MB / 3.775 GB, free: 43.27 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.772e-05/8.407, allocations: 48.98 kB / 3.775 GB, free: 43.27 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/8.407, allocations: 0 / 3.775 GB, free: 43.27 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/8.407, allocations: 3.656 kB / 3.775 GB, free: 43.27 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001864/8.409, allocations: 1.468 MB / 3.777 GB, free: 42.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/8.409, allocations: 4.781 kB / 3.777 GB, free: 42.98 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003921/8.409, allocations: 100.5 kB / 3.777 GB, free: 42.98 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002239/8.411, allocations: 1.004 MB / 3.778 GB, free: 42.97 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.957e-05/8.412, allocations: 21.59 kB / 3.778 GB, free: 42.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001364/8.413, allocations: 1.449 MB / 3.779 GB, free: 42.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/8.413, allocations: 6.188 kB / 3.779 GB, free: 42.41 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002543/8.415, allocations: 2.058 MB / 3.781 GB, free: 42.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004527/8.416, allocations: 348.4 kB / 3.781 GB, free: 41.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.004e-05/8.416, allocations: 8.266 kB / 3.781 GB, free: 41.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005096/8.417, allocations: 85.64 kB / 3.781 GB, free: 41.89 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/8.417, allocations: 53.22 kB / 3.782 GB, free: 41.89 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.144e-05/8.417, allocations: 17.44 kB / 3.782 GB, free: 41.89 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005458/8.417, allocations: 473.9 kB / 3.782 GB, free: 41.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/8.417, allocations: 0 / 3.782 GB, free: 41.8 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00611/8.423, allocations: 1.439 MB / 3.783 GB, free: 41.57 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,$cse17.phase,$cse17.region,$cse18.phase,$cse18.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 (45): * Single equations (assignments): 35 * 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.008091/8.431, allocations: 1.729 MB / 3.785 GB, free: 41.27 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003286/8.435, allocations: 1.375 MB / 3.786 GB, free: 41.24 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.094e-06/8.435, allocations: 0 / 3.786 GB, free: 41.24 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001054/8.436, allocations: 0.8066 MB / 3.787 GB, free: 41.23 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001876/8.438, allocations: 322.7 kB / 3.788 GB, free: 41.22 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003457/8.441, allocations: 2.967 MB / 3.79 GB, free: 39.91 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004906/8.442, allocations: 1.135 MB / 3.792 GB, free: 39.21 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000201/8.442, allocations: 64.72 kB / 3.792 GB, free: 39.2 MB / 0.5417 GB Notification: Performance of SimCode: time 1.583e-06/8.442, allocations: 2.5 kB / 3.792 GB, free: 39.2 MB / 0.5417 GB Notification: Performance of Templates: time 0.05006/8.492, allocations: 35.79 MB / 3.827 GB, free: 36.71 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpNPSH/TestWaterPumpNPSH.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches