Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.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.TestControlledPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.y|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|valve.port_b.m_flow|valve.port_b.p|valve.port_b.h_outflow|valve.minLimiter.y|valveOpening.y|pressure1.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|pump1.port_b.m_flow|pump1.port_b.p|pump1.port_b.h_outflow|valve1.port_b.m_flow|valve1.port_b.p|valve1.port_b.h_outflow|valve1.minLimiter.y|valveOpening1.y|sinkPressure.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.y|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|valve.port_b.m_flow|valve.port_b.p|valve.port_b.h_outflow|valve.minLimiter.y|valveOpening.y|pressure1.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|pump1.port_b.m_flow|pump1.port_b.p|pump1.port_b.h_outflow|valve1.port_b.m_flow|valve1.port_b.p|valve1.port_b.h_outflow|valve1.minLimiter.y|valveOpening1.y|sinkPressure.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00201/0.00201, 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.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008353/0.0008353, allocations: 105.3 kB / 296.2 MB, free: 6.879 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3389/0.3389, allocations: 44.83 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002702/0.0002704, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3119, allocations: 62.96 MB / 0.5165 GB, free: 37.07 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.599/5.911, allocations: 2.79 GB / 3.306 GB, free: 164.2 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/5.911, allocations: 88.27 kB / 3.306 GB, free: 164.2 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.534/8.446, allocations: 0.7343 GB / 4.041 GB, free: 56.95 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.384e-06/8.446, allocations: 0 / 4.041 GB, free: 56.95 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002427/8.446, allocations: 41.25 kB / 4.041 GB, free: 56.95 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 289 * Number of variables: 289 Notification: Performance of Generate backend data structure: time 0.01349/8.46, allocations: 2.889 MB / 4.044 GB, free: 55.55 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/8.46, allocations: 11.75 kB / 4.044 GB, free: 55.55 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005652/8.465, allocations: 0.6648 MB / 4.044 GB, free: 55.46 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002995/8.468, allocations: 1.014 MB / 4.045 GB, free: 55.11 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001868/8.469, allocations: 101.9 kB / 4.045 GB, free: 55.1 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004853/8.469, allocations: 106.8 kB / 4.046 GB, free: 55.1 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006206/8.475, allocations: 2.033 MB / 4.047 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.502e-05/8.476, allocations: 6.969 kB / 4.048 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003154/8.476, allocations: 54.81 kB / 4.048 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.367e-05/8.476, allocations: 41.86 kB / 4.048 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005326/8.481, allocations: 1.881 MB / 4.049 GB, free: 54.65 MB / 0.5573 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.01203/8.493, allocations: 9.491 MB / 4.059 GB, free: 48.21 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004937/8.498, allocations: 1.644 MB / 4.06 GB, free: 48.17 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001338/8.5, allocations: 0.6194 MB / 4.061 GB, free: 48.16 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04339/8.543, allocations: 26.82 MB / 4.087 GB, free: 29.8 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.066e-05/8.543, allocations: 42.97 kB / 4.087 GB, free: 29.76 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=94): time 4.128e-06/8.543, allocations: 7.875 kB / 4.087 GB, free: 29.75 MB / 0.5573 GB Notification: Performance of matching and sorting (n=94): time 0.01356/8.557, allocations: 3.485 MB / 4.091 GB, free: 28.8 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/8.557, allocations: 166.8 kB / 4.091 GB, free: 28.61 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002366/8.559, allocations: 0.8932 MB / 4.092 GB, free: 28.23 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003398/8.56, allocations: 44.77 kB / 4.092 GB, free: 28.19 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006602/8.56, allocations: 0.5871 MB / 4.092 GB, free: 27.72 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006655/8.561, allocations: 316.1 kB / 4.093 GB, free: 27.48 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/8.561, allocations: 22.19 kB / 4.093 GB, free: 27.46 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002382/8.562, allocations: 349.6 kB / 4.093 GB, free: 27.14 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001497/8.563, allocations: 0.509 MB / 4.093 GB, free: 26.99 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001579/8.565, allocations: 0.8412 MB / 4.094 GB, free: 26.43 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002822/8.567, allocations: 1.343 MB / 4.095 GB, free: 25.67 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/8.567, allocations: 3 kB / 4.095 GB, free: 25.67 MB / 0.5573 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.004204/8.572, allocations: 1.657 MB / 4.097 GB, free: 25.07 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002231/8.572, allocations: 380.6 kB / 4.097 GB, free: 24.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/8.572, allocations: 11.31 kB / 4.097 GB, free: 24.59 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003072/8.575, allocations: 0.5796 MB / 4.098 GB, free: 24.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/8.576, allocations: 290 kB / 4.098 GB, free: 24.46 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002172/8.578, allocations: 1.557 MB / 4.1 GB, free: 23.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001857/8.58, allocations: 242.7 kB / 4.1 GB, free: 23.15 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002074/8.58, allocations: 67.5 kB / 4.1 GB, free: 23.14 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/8.58, allocations: 7.375 kB / 4.1 GB, free: 23.14 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003333/8.584, allocations: 1.352 MB / 4.101 GB, free: 22.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/8.584, allocations: 11.69 kB / 4.101 GB, free: 22.69 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/8.584, allocations: 17.5 kB / 4.101 GB, free: 22.69 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002017/8.586, allocations: 452.5 kB / 4.102 GB, free: 22.65 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.244e-05/8.586, allocations: 23 kB / 4.102 GB, free: 22.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001706/8.588, allocations: 232.7 kB / 4.102 GB, free: 22.57 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001606/8.588, allocations: 59.81 kB / 4.102 GB, free: 22.55 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 12 (source.medium.phase,sink.medium.phase,pump.heatTransfer.states[1].phase,source1.medium.phase,sink1.medium.phase,pump1.heatTransfer.states[1].phase,valve1.state_b.phase,valve1.state_a.phase,pump1.monitoring.state_in.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 (114): * Single equations (assignments): 112 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 11,2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0009927/8.589, allocations: 386.8 kB / 4.103 GB, free: 22.25 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005266/8.589, allocations: 116.3 kB / 4.103 GB, free: 22.19 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008271/8.598, allocations: 5.906 MB / 4.108 GB, free: 19.51 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-05/8.598, allocations: 78.67 kB / 4.109 GB, free: 19.48 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/8.598, allocations: 3.938 kB / 4.109 GB, free: 19.48 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.153e-05/8.598, allocations: 7.5 kB / 4.109 GB, free: 19.48 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/8.609, allocations: 8.039 MB / 4.116 GB, free: 12.47 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.478e-05/8.609, allocations: 0 / 4.116 GB, free: 12.47 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00087/8.61, allocations: 228.2 kB / 4.117 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003553/8.613, allocations: 1.638 MB / 4.118 GB, free: 10.94 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001436/8.614, allocations: 30.52 kB / 4.118 GB, free: 10.91 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002681/8.616, allocations: 2.641 MB / 4.121 GB, free: 8.418 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/8.616, allocations: 0 / 4.121 GB, free: 8.418 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005682/8.622, allocations: 3.791 MB / 4.125 GB, free: 4.988 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/8.624, allocations: 0.5573 MB / 4.125 GB, free: 4.488 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005451/8.624, allocations: 23.94 kB / 4.125 GB, free: 4.465 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001733/8.626, allocations: 183.3 kB / 4.125 GB, free: 4.324 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000287/8.626, allocations: 101 kB / 4.125 GB, free: 4.266 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/8.626, allocations: 51.3 kB / 4.125 GB, free: 4.227 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001624/8.628, allocations: 0.8017 MB / 4.126 GB, free: 3.547 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.31e-07/8.628, allocations: 0 / 4.126 GB, free: 3.547 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009273/8.637, allocations: 1.896 MB / 4.128 GB, free: 1.684 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 48 ($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,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,source.medium.phase,sink.medium.phase,pump.heatTransfer.states[1].phase,source1.medium.phase,sink1.medium.phase,pump1.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 16,2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.01055/8.648, allocations: 2.136 MB / 4.13 GB, free: 76 kB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01136/8.659, allocations: 3.046 MB / 4.133 GB, free: 14.53 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/8.659, allocations: 0 / 4.133 GB, free: 14.53 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002966/8.662, allocations: 1.6 MB / 4.135 GB, free: 13.09 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004248/8.667, allocations: 0.6139 MB / 4.135 GB, free: 12.64 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009749/8.676, allocations: 5.568 MB / 4.141 GB, free: 7.477 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001754/8.678, allocations: 1.585 MB / 4.142 GB, free: 6.133 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005744/8.679, allocations: 114.7 kB / 4.142 GB, free: 6.027 MB / 0.573 GB Notification: Performance of SimCode: time 9.82e-07/8.679, allocations: 0 / 4.142 GB, free: 6.027 MB / 0.573 GB Notification: Performance of Templates: time 0.4937/9.172, allocations: 62.35 MB / 4.203 GB, free: 61.91 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestControlledPump/TestControlledPump.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches