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.001273/0.001273, allocations: 175.8 kB / 17.4 MB, free: 4.418 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.324/1.324, allocations: 223.3 MB / 241.4 MB, free: 9.949 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.0007878/0.0007877, allocations: 97.44 kB / 292.6 MB, free: 10.54 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003387/0.0003387, allocations: 11.94 kB / 352.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2164, allocations: 50.4 MB / 402.7 MB, free: 32.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.124/5.341, allocations: 2.798 GB / 3.192 GB, free: 1.496 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002731/5.341, allocations: 86.47 kB / 3.192 GB, free: 1.414 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.27/7.611, allocations: 0.6756 GB / 3.867 GB, free: 34.83 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.783e-06/7.611, allocations: 4 kB / 3.867 GB, free: 34.82 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001285/7.611, allocations: 42.81 kB / 3.868 GB, free: 34.81 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.009543/7.621, allocations: 2.838 MB / 3.87 GB, free: 33.22 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/7.621, allocations: 12.25 kB / 3.87 GB, free: 33.22 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00426/7.625, allocations: 0.5604 MB / 3.871 GB, free: 33.11 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002399/7.627, allocations: 1.022 MB / 3.872 GB, free: 32.52 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/7.628, allocations: 191.2 kB / 3.872 GB, free: 32.38 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003961/7.628, allocations: 117.5 kB / 3.872 GB, free: 32.34 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004093/7.632, allocations: 2.013 MB / 3.874 GB, free: 31.43 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.076e-05/7.632, allocations: 11.81 kB / 3.874 GB, free: 31.41 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002043/7.632, allocations: 55.66 kB / 3.874 GB, free: 31.38 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.807e-05/7.632, allocations: 72.75 kB / 3.874 GB, free: 31.37 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003509/7.636, allocations: 1.746 MB / 3.876 GB, free: 30.82 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.01101/7.647, allocations: 9.319 MB / 3.885 GB, free: 22.04 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002754/7.65, allocations: 1.469 MB / 3.886 GB, free: 20.54 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009763/7.651, allocations: 0.6943 MB / 3.887 GB, free: 19.83 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3548/8.006, allocations: 63.39 MB / 3.949 GB, free: 38.23 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002501/8.008, allocations: 1.067 MB / 3.95 GB, free: 38.12 MB / 490.7 MB Notification: Performance of pre-optimization done (n=110): time 3.537e-06/8.008, allocations: 0 / 3.95 GB, free: 38.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=121): time 0.01508/8.023, allocations: 6.502 MB / 3.956 GB, free: 36.83 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/8.023, allocations: 306.3 kB / 3.957 GB, free: 36.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/8.024, allocations: 1.036 MB / 3.958 GB, free: 36.32 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.877e-05/8.024, allocations: 55.77 kB / 3.958 GB, free: 36.29 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003489/8.025, allocations: 0.5613 MB / 3.958 GB, free: 36.09 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002852/8.025, allocations: 413.5 kB / 3.959 GB, free: 35.88 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.474e-05/8.025, allocations: 30.03 kB / 3.959 GB, free: 35.88 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.91e-05/8.025, allocations: 364.6 kB / 3.959 GB, free: 35.58 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009558/8.026, allocations: 0.629 MB / 3.96 GB, free: 35.58 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/8.027, allocations: 1.036 MB / 3.961 GB, free: 35.13 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001986/8.029, allocations: 1.647 MB / 3.962 GB, free: 34.71 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/8.029, allocations: 3.031 kB / 3.962 GB, free: 34.71 MB / 490.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.003279/8.033, allocations: 2.122 MB / 3.964 GB, free: 34.54 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001406/8.033, allocations: 424.4 kB / 3.965 GB, free: 34.06 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/8.033, allocations: 16.28 kB / 3.965 GB, free: 34.06 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005998/8.039, allocations: 0.9906 MB / 3.966 GB, free: 34.01 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/8.04, allocations: 299.9 kB / 3.966 GB, free: 34.01 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002611/8.043, allocations: 4.028 MB / 3.97 GB, free: 30.89 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/8.044, allocations: 129.7 kB / 3.97 GB, free: 30.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/8.044, allocations: 68.83 kB / 3.97 GB, free: 30.89 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/8.044, allocations: 10.84 kB / 3.97 GB, free: 30.88 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003022/8.047, allocations: 1.923 MB / 3.972 GB, free: 30.81 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/8.047, allocations: 8.406 kB / 3.972 GB, free: 30.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005456/8.053, allocations: 0.8749 MB / 3.973 GB, free: 30.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/8.054, allocations: 298.2 kB / 3.973 GB, free: 30.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002071/8.056, allocations: 3.364 MB / 3.977 GB, free: 28.17 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001304/8.057, allocations: 122.1 kB / 3.977 GB, free: 28.17 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/8.057, allocations: 67.89 kB / 3.977 GB, free: 28.17 MB / 490.7 MB 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.0007858/8.058, allocations: 465 kB / 3.977 GB, free: 27.98 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/8.058, allocations: 139.7 kB / 3.977 GB, free: 27.91 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00542/8.064, allocations: 4.936 MB / 3.982 GB, free: 27.48 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.411e-05/8.064, allocations: 53.78 kB / 3.982 GB, free: 27.48 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/8.064, allocations: 0 / 3.982 GB, free: 27.48 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/8.064, allocations: 7.969 kB / 3.982 GB, free: 27.48 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00685/8.071, allocations: 6.737 MB / 3.989 GB, free: 26.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/8.071, allocations: 6.062 kB / 3.989 GB, free: 26.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006989/8.072, allocations: 180.2 kB / 3.989 GB, free: 26.96 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003752/8.075, allocations: 1.361 MB / 3.99 GB, free: 26.89 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001008/8.075, allocations: 41.86 kB / 3.99 GB, free: 26.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002666/8.078, allocations: 4.465 MB / 3.995 GB, free: 23.77 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/8.078, allocations: 0 / 3.995 GB, free: 23.77 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005682/8.084, allocations: 4.86 MB / 3.999 GB, free: 23.31 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008683/8.085, allocations: 0.5499 MB / 4 GB, free: 23.07 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002108/8.085, allocations: 24.84 kB / 4 GB, free: 23.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000962/8.086, allocations: 111.2 kB / 4 GB, free: 23.06 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002245/8.086, allocations: 124.9 kB / 4 GB, free: 23.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.359e-05/8.086, allocations: 50.77 kB / 4 GB, free: 23.05 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001164/8.087, allocations: 0.9888 MB / 4.001 GB, free: 22.95 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.51e-07/8.087, allocations: 0 / 4.001 GB, free: 22.95 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006663/8.094, allocations: 2.074 MB / 4.003 GB, free: 22.86 MB / 490.7 MB 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.007466/8.102, allocations: 2.336 MB / 4.006 GB, free: 22.62 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005539/8.107, allocations: 3.098 MB / 4.009 GB, free: 22.55 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/8.107, allocations: 2.25 kB / 4.009 GB, free: 22.55 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002199/8.109, allocations: 1.508 MB / 4.01 GB, free: 22.54 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003257/8.113, allocations: 0.6523 MB / 4.011 GB, free: 22.52 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00615/8.119, allocations: 5.199 MB / 4.016 GB, free: 20.33 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000749/8.12, allocations: 1.498 MB / 4.017 GB, free: 19.57 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002179/8.122, allocations: 1.386 MB / 4.019 GB, free: 19.52 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/8.122, allocations: 117 kB / 4.019 GB, free: 19.51 MB / 490.7 MB Notification: Performance of SimCode: time 8.71e-07/8.122, allocations: 0 / 4.019 GB, free: 19.51 MB / 490.7 MB Notification: Performance of Templates: time 0.08501/8.207, allocations: 70.65 MB / 4.088 GB, free: 10.97 MB / 0.4948 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/jenkins1/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