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.0009218/0.0009215, allocations: 94.36 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009211/0.0009211, allocations: 204.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002268/0.0002269, allocations: 4 kB / 306.6 MB, free: 1.434 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1032, allocations: 51.49 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.2309/0.3342, allocations: 54.96 MB / 413 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03014/0.3644, allocations: 23.96 MB / 437 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00238/0.3668, allocations: 39.69 kB / 437 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00213/0.3689, allocations: 0.626 MB / 437.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01577/0.3847, allocations: 5.194 MB / 442.8 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01012/0.3949, allocations: 3.31 MB / 446.1 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003773/0.3986, allocations: 2.148 MB / 448.3 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001626/0.4003, allocations: 0.8819 MB / 449.2 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0159/0.4162, allocations: 9.559 MB / 458.7 MB, free: 7.227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02408/0.4403, allocations: 15.15 MB / 473.9 MB, free: 8.066 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006803/0.441, allocations: 76 kB / 474 MB, free: 7.992 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01708/0.4581, allocations: 8.615 MB / 482.6 MB, free: 15.37 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007489/0.4589, allocations: 390.8 kB / 483 MB, free: 14.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000721/0.4597, allocations: 313 kB / 483.3 MB, free: 14.67 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008577/0.4683, allocations: 4.787 MB / 488 MB, free: 9.875 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.4683, allocations: 3.938 kB / 488 MB, free: 9.871 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4683, allocations: 4 kB / 488.1 MB, free: 9.867 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.324e-05/0.4683, allocations: 4 kB / 488.1 MB, free: 9.863 MB / 398.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.006695/0.475, allocations: 2.375 MB / 490.4 MB, free: 7.434 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.4751, allocations: 12.03 kB / 490.4 MB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003167/0.4783, allocations: 481.8 kB / 490.9 MB, free: 6.949 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001523/0.4798, allocations: 0.8636 MB / 491.8 MB, free: 6.039 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001587/0.48, allocations: 187.3 kB / 492 MB, free: 5.836 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001813/0.4802, allocations: 108 kB / 492.1 MB, free: 5.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003709/0.4839, allocations: 1.996 MB / 494.1 MB, free: 3.605 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.443e-05/0.4839, allocations: 11.92 kB / 494.1 MB, free: 3.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001434/0.4841, allocations: 55.94 kB / 494.1 MB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.354e-05/0.4842, allocations: 74.09 kB / 494.2 MB, free: 3.465 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003716/0.4879, allocations: 1.78 MB / 496 MB, free: 1.676 MB / 398.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.01427/0.5022, allocations: 9.224 MB / 0.4934 GB, free: 7.848 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004727/0.5069, allocations: 1.492 MB / 0.4948 GB, free: 6.309 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3215/0.8285, allocations: 71.29 MB / 0.5644 GB, free: 126.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002693/0.8312, allocations: 1.058 MB / 0.5655 GB, free: 125.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=110): time 3.196e-06/0.8313, allocations: 0 / 0.5655 GB, free: 125.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=121): time 0.01522/0.8465, allocations: 6.557 MB / 0.5719 GB, free: 121 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.587e-05/0.8466, allocations: 303.7 kB / 0.5722 GB, free: 120.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000993/0.8476, allocations: 1.034 MB / 0.5732 GB, free: 119.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.811e-05/0.8477, allocations: 45.7 kB / 0.5732 GB, free: 119.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002968/0.848, allocations: 0.571 MB / 0.5738 GB, free: 118.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002557/0.8483, allocations: 418 kB / 0.5742 GB, free: 118.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.128e-05/0.8484, allocations: 28 kB / 0.5742 GB, free: 118.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.441e-05/0.8485, allocations: 366 kB / 0.5745 GB, free: 118.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009014/0.8494, allocations: 0.6324 MB / 0.5752 GB, free: 117.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/0.8504, allocations: 1.05 MB / 0.5762 GB, free: 116.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.8515, allocations: 0.7431 MB / 0.5769 GB, free: 115.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.8515, allocations: 4 kB / 0.5769 GB, free: 115.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.0032/0.8547, allocations: 2.162 MB / 0.579 GB, free: 113.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006711/0.8554, allocations: 4.445 MB / 0.5834 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/0.8554, allocations: 12 kB / 0.5834 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005826/0.8612, allocations: 1.018 MB / 0.5844 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/0.8625, allocations: 296.4 kB / 0.5847 GB, free: 107.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002562/0.8651, allocations: 4.03 MB / 0.5886 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.8666, allocations: 129.7 kB / 0.5887 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.8667, allocations: 71.98 kB / 0.5888 GB, free: 102.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.8667, allocations: 4 kB / 0.5888 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003035/0.8697, allocations: 1.968 MB / 0.5907 GB, free: 100.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.8698, allocations: 12 kB / 0.5907 GB, free: 100.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005293/0.8751, allocations: 0.8945 MB / 0.5916 GB, free: 99.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.8761, allocations: 302 kB / 0.5919 GB, free: 99.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001939/0.8781, allocations: 3.374 MB / 0.5952 GB, free: 96.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001294/0.8794, allocations: 125.8 kB / 0.5953 GB, free: 96.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.8795, allocations: 63.98 kB / 0.5954 GB, free: 96.02 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,$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,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 (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.0007143/0.8802, allocations: 462.8 kB / 0.5958 GB, free: 95.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001812/0.8804, allocations: 146.4 kB / 0.5959 GB, free: 95.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005147/0.8856, allocations: 4.924 MB / 0.6008 GB, free: 90.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.369e-05/0.8856, allocations: 56.05 kB / 0.6008 GB, free: 90.37 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.8857, allocations: 4 kB / 0.6008 GB, free: 90.37 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/0.8857, allocations: 14.59 kB / 0.6008 GB, free: 90.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007406/0.8931, allocations: 6.732 MB / 0.6074 GB, free: 83.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.8931, allocations: 0 / 0.6074 GB, free: 83.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007007/0.8939, allocations: 179.7 kB / 0.6076 GB, free: 83.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00372/0.8976, allocations: 1.376 MB / 0.6089 GB, free: 81.99 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001428/0.8977, allocations: 31.98 kB / 0.6089 GB, free: 81.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002941/0.9007, allocations: 4.471 MB / 0.6133 GB, free: 77.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.9007, allocations: 0 / 0.6133 GB, free: 77.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005582/0.9063, allocations: 4.931 MB / 0.6181 GB, free: 72.29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.9074, allocations: 0.5405 MB / 0.6187 GB, free: 71.73 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002243/0.9077, allocations: 31.98 kB / 0.6187 GB, free: 71.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009922/0.9087, allocations: 107.7 kB / 0.6188 GB, free: 71.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002248/0.9089, allocations: 121.1 kB / 0.6189 GB, free: 71.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.999e-05/0.909, allocations: 47.97 kB / 0.6189 GB, free: 71.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001085/0.9101, allocations: 0.9846 MB / 0.6199 GB, free: 70.44 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9101, allocations: 4 kB / 0.6199 GB, free: 70.44 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005144/0.9153, allocations: 1.946 MB / 0.6218 GB, free: 68.64 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 (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.005322/0.9206, allocations: 1.699 MB / 0.6235 GB, free: 67.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005514/0.9261, allocations: 3.12 MB / 0.6265 GB, free: 64.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.355e-06/0.9262, allocations: 10.75 kB / 0.6265 GB, free: 64.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00222/0.9284, allocations: 1.507 MB / 0.628 GB, free: 62.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003032/0.9314, allocations: 0.6461 MB / 0.6286 GB, free: 61.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006216/0.9377, allocations: 5.212 MB / 0.6337 GB, free: 56.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006784/0.9384, allocations: 1.526 MB / 0.6352 GB, free: 55.14 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002053/0.9404, allocations: 1.304 MB / 0.6365 GB, free: 53.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002693/0.9407, allocations: 115.4 kB / 0.6366 GB, free: 53.73 MB / 446.1 MB Notification: Performance of SimCode: time 5.1e-07/0.9407, allocations: 0 / 0.6366 GB, free: 53.73 MB / 446.1 MB Notification: Performance of Templates: time 0.2957/1.236, allocations: 69.54 MB / 0.7045 GB, free: 139.3 MB / 446.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/PumpingSystem/PumpingSystem.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches