Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.PumpingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|PT1.y|pumps.medium.T|pumps.medium.p|reservoir.level|reservoir.medium.T|PumpRPMGenerator.y|controller.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem") translateModel(Modelica.Fluid.Examples.PumpingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|PT1.y|pumps.medium.T|pumps.medium.p|reservoir.level|reservoir.medium.T|PumpRPMGenerator.y|controller.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001599/0.001599, allocations: 181.3 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000977/0.0009767, allocations: 96.75 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00028/0.00028, allocations: 11.94 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2279, allocations: 50.41 MB / 401.5 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.53/5.758, allocations: 2.798 GB / 3.19 GB, free: 4.039 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003764/5.759, allocations: 80.59 kB / 3.19 GB, free: 3.961 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.328/8.087, allocations: 0.715 GB / 3.905 GB, free: 4.973 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.594e-06/8.087, allocations: 0 / 3.905 GB, free: 4.973 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001482/8.087, allocations: 35.92 kB / 3.905 GB, free: 4.938 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 0.01184/8.099, allocations: 2.863 MB / 3.908 GB, free: 2.047 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/8.099, allocations: 8.031 kB / 3.908 GB, free: 2.039 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00464/8.103, allocations: 0.5718 MB / 3.909 GB, free: 1.465 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003233/8.107, allocations: 0.9805 MB / 3.91 GB, free: 448 kB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002006/8.107, allocations: 191.3 kB / 3.91 GB, free: 236 kB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005273/8.107, allocations: 127.8 kB / 3.91 GB, free: 108 kB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3101/8.418, allocations: 1.992 MB / 3.912 GB, free: 32.61 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.229e-05/8.418, allocations: 2.438 kB / 3.912 GB, free: 32.61 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002151/8.418, allocations: 55.89 kB / 3.912 GB, free: 32.61 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001065/8.418, allocations: 79.23 kB / 3.912 GB, free: 32.61 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003517/8.422, allocations: 1.743 MB / 3.914 GB, free: 32.59 MB / 474.7 MB 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.01128/8.433, allocations: 9.313 MB / 3.923 GB, free: 27.52 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002784/8.436, allocations: 1.47 MB / 3.924 GB, free: 27.39 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1057/8.541, allocations: 63.41 MB / 3.986 GB, free: 20.39 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002463/8.544, allocations: 1.063 MB / 3.987 GB, free: 20.27 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=110): time 3.176e-06/8.544, allocations: 0 / 3.987 GB, free: 20.27 MB / 0.4948 GB Notification: Performance of matching and sorting (n=121): time 0.01551/8.559, allocations: 6.476 MB / 3.993 GB, free: 18.8 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001637/8.56, allocations: 308.4 kB / 3.994 GB, free: 18.46 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0012/8.561, allocations: 0.9122 MB / 3.995 GB, free: 18.31 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001184/8.561, allocations: 50.42 kB / 3.995 GB, free: 18.28 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004076/8.561, allocations: 0.5673 MB / 3.995 GB, free: 18.07 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003348/8.562, allocations: 414 kB / 3.996 GB, free: 17.87 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.974e-05/8.562, allocations: 27.44 kB / 3.996 GB, free: 17.87 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001528/8.562, allocations: 365.4 kB / 3.996 GB, free: 17.56 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009205/8.563, allocations: 0.6258 MB / 3.997 GB, free: 17.56 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001112/8.564, allocations: 1.034 MB / 3.998 GB, free: 17.09 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/8.565, allocations: 0.7318 MB / 3.998 GB, free: 17.07 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/8.565, allocations: 3.75 kB / 3.998 GB, free: 17.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.003218/8.568, allocations: 2.127 MB / 4 GB, free: 16.88 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001195/8.569, allocations: 4.354 MB / 4.005 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/8.569, allocations: 11.28 kB / 4.005 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006388/8.576, allocations: 0.9908 MB / 4.006 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/8.577, allocations: 295.2 kB / 4.006 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003374/8.58, allocations: 4.03 MB / 4.01 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/8.582, allocations: 133.9 kB / 4.01 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001257/8.582, allocations: 71.69 kB / 4.01 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/8.582, allocations: 7.266 kB / 4.01 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002967/8.585, allocations: 1.914 MB / 4.012 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.955e-05/8.585, allocations: 13.62 kB / 4.012 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006004/8.591, allocations: 0.8694 MB / 4.013 GB, free: 24.97 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/8.592, allocations: 297.5 kB / 4.013 GB, free: 24.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002423/8.595, allocations: 3.369 MB / 4.016 GB, free: 22.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/8.596, allocations: 118.9 kB / 4.016 GB, free: 22.35 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/8.596, allocations: 76.11 kB / 4.017 GB, free: 22.35 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],$PRE.controller.y,controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,reservoir.medium.phase,pumps.medium.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (159): * Single equations (assignments): 153 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 6,2 7,1 1,2 3,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008164/8.597, allocations: 461.5 kB / 4.017 GB, free: 22.16 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001998/8.597, allocations: 140.2 kB / 4.017 GB, free: 22.09 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00533/8.603, allocations: 4.935 MB / 4.022 GB, free: 21.62 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-05/8.603, allocations: 53.66 kB / 4.022 GB, free: 21.62 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/8.603, allocations: 3.562 kB / 4.022 GB, free: 21.62 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/8.603, allocations: 11.45 kB / 4.022 GB, free: 21.61 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00782/8.611, allocations: 6.734 MB / 4.029 GB, free: 21.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/8.611, allocations: 0 / 4.029 GB, free: 21.06 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007122/8.611, allocations: 183.4 kB / 4.029 GB, free: 21.05 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004164/8.616, allocations: 1.367 MB / 4.03 GB, free: 20.96 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/8.616, allocations: 33.94 kB / 4.03 GB, free: 20.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003422/8.619, allocations: 4.472 MB / 4.034 GB, free: 17.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/8.619, allocations: 0 / 4.034 GB, free: 17.83 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005671/8.625, allocations: 4.915 MB / 4.039 GB, free: 17.29 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/8.626, allocations: 0.5497 MB / 4.04 GB, free: 17.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003459/8.626, allocations: 28.88 kB / 4.04 GB, free: 17.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/8.628, allocations: 107.9 kB / 4.04 GB, free: 17.02 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/8.628, allocations: 120 kB / 4.04 GB, free: 17.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.843e-05/8.628, allocations: 53.31 kB / 4.04 GB, free: 17.02 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001157/8.629, allocations: 0.9866 MB / 4.041 GB, free: 16.91 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.6e-07/8.629, allocations: 0 / 4.041 GB, free: 16.91 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006747/8.636, allocations: 2.071 MB / 4.043 GB, free: 16.82 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.medium.T,reservoir.level,PT1.y) * Number of discrete variables: 36 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T) * Number of discrete states: 2 (controller.y,PumpRPMGenerator.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 1,1 6,2 9,2 3,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00883/8.645, allocations: 2.338 MB / 4.045 GB, free: 16.46 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006474/8.651, allocations: 3.097 MB / 4.048 GB, free: 16.39 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/8.651, allocations: 1.5 kB / 4.048 GB, free: 16.39 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002494/8.654, allocations: 1.515 MB / 4.05 GB, free: 16.36 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003476/8.657, allocations: 0.6458 MB / 4.051 GB, free: 16.32 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008452/8.666, allocations: 5.196 MB / 4.056 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/8.667, allocations: 1.534 MB / 4.057 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002567/8.67, allocations: 1.391 MB / 4.058 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003149/8.67, allocations: 118.1 kB / 4.059 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of SimCode: time 1.473e-06/8.67, allocations: 4 kB / 4.059 GB, free: 13.31 MB / 0.5105 GB Notification: Performance of Templates: time 0.3856/9.056, allocations: 67.7 MB / 4.125 GB, free: 75.72 MB / 0.5105 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/PumpingSystem/PumpingSystem.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches