Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009125/0.0009128, allocations: 92.31 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 202.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.7 MB / 247.5 MB, free: 11.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002418/0.0002418, allocations: 4 kB / 308.4 MB, free: 0.7539 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1119, allocations: 51.54 MB / 359.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.2678/0.3797, allocations: 65.5 MB / 425.4 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03937/0.4191, allocations: 28.81 MB / 454.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002318/0.4215, allocations: 43.62 kB / 454.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002441/0.424, allocations: 0.6218 MB / 454.9 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01873/0.4427, allocations: 5.427 MB / 460.3 MB, free: 6.598 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01142/0.4542, allocations: 3.54 MB / 463.9 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005799/0.46, allocations: 4.908 MB / 468.8 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001987/0.462, allocations: 0.9345 MB / 469.7 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01395/0.476, allocations: 6.135 MB / 475.8 MB, free: 6.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02429/0.5003, allocations: 9.286 MB / 485.1 MB, free: 13.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008321/0.5012, allocations: 79.94 kB / 485.2 MB, free: 13.47 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02694/0.5282, allocations: 8.795 MB / 494 MB, free: 4.672 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001302/0.5296, allocations: 422.6 kB / 494.4 MB, free: 4.258 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00241/0.532, allocations: 0.7948 MB / 495.2 MB, free: 3.453 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01328/0.5453, allocations: 4.884 MB / 0.4884 GB, free: 14.56 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.5454, allocations: 0 / 0.4884 GB, free: 14.56 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.5454, allocations: 0 / 0.4884 GB, free: 14.56 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.492e-05/0.5455, allocations: 4 kB / 0.4884 GB, free: 14.55 MB / 414.1 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.008639/0.5541, allocations: 2.363 MB / 0.4907 GB, free: 12.14 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.5542, allocations: 8.031 kB / 0.4907 GB, free: 12.13 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003677/0.5579, allocations: 486.7 kB / 0.4911 GB, free: 11.65 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00204/0.5599, allocations: 0.8906 MB / 0.492 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002307/0.5602, allocations: 187.4 kB / 0.4922 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000432/0.5606, allocations: 112 kB / 0.4923 GB, free: 10.41 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005123/0.5658, allocations: 2.016 MB / 0.4943 GB, free: 8.262 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.084e-05/0.5659, allocations: 11.84 kB / 0.4943 GB, free: 8.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002576/0.5661, allocations: 47.98 kB / 0.4943 GB, free: 8.203 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001253/0.5663, allocations: 86.08 kB / 0.4944 GB, free: 8.117 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004476/0.5708, allocations: 1.788 MB / 0.4962 GB, free: 6.32 MB / 414.1 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.01528/0.5861, allocations: 9.223 MB / 0.5052 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003428/0.5895, allocations: 1.492 MB / 0.5066 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.5908, allocations: 0.706 MB / 0.5073 GB, free: 10.24 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3208/0.9116, allocations: 71.29 MB / 0.5769 GB, free: 115.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002764/0.9144, allocations: 1.074 MB / 0.578 GB, free: 114.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=110): time 5.17e-06/0.9144, allocations: 0 / 0.578 GB, free: 114.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=121): time 0.01904/0.9335, allocations: 6.565 MB / 0.5844 GB, free: 108.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.877e-05/0.9336, allocations: 306.7 kB / 0.5847 GB, free: 107.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001199/0.9348, allocations: 1.045 MB / 0.5857 GB, free: 106.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001425/0.9349, allocations: 49.7 kB / 0.5857 GB, free: 106.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003496/0.9353, allocations: 0.5706 MB / 0.5863 GB, free: 106 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000336/0.9357, allocations: 409.9 kB / 0.5867 GB, free: 105.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001912/0.9359, allocations: 129.6 kB / 0.5868 GB, free: 105.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.148e-05/0.9359, allocations: 305.2 kB / 0.5871 GB, free: 105.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.9369, allocations: 0.6481 MB / 0.5877 GB, free: 104.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001207/0.9382, allocations: 1.058 MB / 0.5888 GB, free: 103.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002161/0.9403, allocations: 1.679 MB / 0.5904 GB, free: 101.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/0.9404, allocations: 4 kB / 0.5904 GB, free: 101.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.003776/0.9441, allocations: 2.195 MB / 0.5926 GB, free: 99.26 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002039/0.9444, allocations: 425.3 kB / 0.593 GB, free: 98.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/0.9444, allocations: 15.98 kB / 0.593 GB, free: 98.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006288/0.9507, allocations: 1.019 MB / 0.594 GB, free: 97.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.952, allocations: 304.4 kB / 0.5943 GB, free: 97.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002864/0.9549, allocations: 4.034 MB / 0.5982 GB, free: 93.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/0.9565, allocations: 123.8 kB / 0.5983 GB, free: 93.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002252/0.9567, allocations: 71.98 kB / 0.5984 GB, free: 92.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.9567, allocations: 7.984 kB / 0.5984 GB, free: 92.96 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003524/0.9603, allocations: 1.969 MB / 0.6003 GB, free: 90.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.698e-05/0.9603, allocations: 13.86 kB / 0.6003 GB, free: 90.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005836/0.9662, allocations: 0.8849 MB / 0.6012 GB, free: 90.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.9675, allocations: 305.7 kB / 0.6015 GB, free: 89.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002319/0.9698, allocations: 3.367 MB / 0.6048 GB, free: 86.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001477/0.9713, allocations: 123.9 kB / 0.6049 GB, free: 86.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00023/0.9716, allocations: 79.03 kB / 0.605 GB, free: 86.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,PumpRPMGenerator.T,PumpRPMGenerator.rate,PumpRPMGenerator.endValue,controller.y,$PRE.controller.y,reservoir.inFlow[3],reservoir.inFlow[2],reservoir.inFlow[1],reservoir.regularFlow[3],reservoir.regularFlow[2],reservoir.regularFlow[1],$whenCondition1,$whenCondition2,reservoir.medium.phase,pumps.medium.phase,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.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 (160): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(2,1), (1,6), (2,7), (1,1), (2,3), (2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0009047/0.9725, allocations: 462.8 kB / 0.6054 GB, free: 85.64 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003323/0.9728, allocations: 138.4 kB / 0.6055 GB, free: 85.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006002/0.9788, allocations: 4.916 MB / 0.6103 GB, free: 80.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.392e-05/0.9789, allocations: 51.92 kB / 0.6104 GB, free: 80.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.9789, allocations: 4 kB / 0.6104 GB, free: 80.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-05/0.979, allocations: 7.969 kB / 0.6104 GB, free: 80.47 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007805/0.9868, allocations: 6.757 MB / 0.617 GB, free: 73.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/0.9868, allocations: 0 / 0.617 GB, free: 73.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007683/0.9876, allocations: 175.8 kB / 0.6172 GB, free: 73.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004235/0.9919, allocations: 1.383 MB / 0.6185 GB, free: 72.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000192/0.9921, allocations: 35.98 kB / 0.6186 GB, free: 72.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002966/0.995, allocations: 4.482 MB / 0.6229 GB, free: 67.42 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.9951, allocations: 0 / 0.6229 GB, free: 67.42 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006113/1.001, allocations: 4.898 MB / 0.6277 GB, free: 62.44 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009318/1.002, allocations: 0.5367 MB / 0.6282 GB, free: 61.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003598/1.003, allocations: 28 kB / 0.6283 GB, free: 61.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/1.004, allocations: 115.7 kB / 0.6284 GB, free: 61.74 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002595/1.004, allocations: 113.1 kB / 0.6285 GB, free: 61.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/1.004, allocations: 55.92 kB / 0.6285 GB, free: 61.58 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001335/1.005, allocations: 0.9963 MB / 0.6295 GB, free: 60.58 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/1.005, allocations: 0 / 0.6295 GB, free: 60.58 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005442/1.011, allocations: 1.939 MB / 0.6314 GB, free: 58.79 MB / 446.1 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.level,reservoir.medium.T,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,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.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 (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(2,1), (1,1), (1,6), (2,9), (2,3), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006982/1.018, allocations: 1.713 MB / 0.6331 GB, free: 57.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006714/1.025, allocations: 3.147 MB / 0.6361 GB, free: 54.21 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.966e-06/1.025, allocations: 3.938 kB / 0.6362 GB, free: 54.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002624/1.027, allocations: 1.492 MB / 0.6376 GB, free: 52.72 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004277/1.032, allocations: 0.6606 MB / 0.6383 GB, free: 52.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007841/1.04, allocations: 5.339 MB / 0.6435 GB, free: 46.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00093/1.04, allocations: 1.491 MB / 0.6449 GB, free: 45.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004792/1.041, allocations: 131.4 kB / 0.6451 GB, free: 45.02 MB / 446.1 MB Notification: Performance of SimCode: time 1.412e-06/1.041, allocations: 0 / 0.6451 GB, free: 45.02 MB / 446.1 MB Notification: Performance of Templates: time 0.2821/1.323, allocations: 90.37 MB / 0.7333 GB, free: 148.1 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.sim & ./Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches