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/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) 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(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/Complex trunk/package.mo): time 0.001543/0.001543, allocations: 197.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.522/1.522, allocations: 226.5 MB / 245.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000752/0.000752, allocations: 94.69 kB / 297.5 MB, free: 6.719 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002332/0.0002332, allocations: 4 kB / 358.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2183, allocations: 51.29 MB / 409.4 MB, free: 27.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.46/5.678, allocations: 2.799 GB / 3.199 GB, free: 119.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001846/5.678, allocations: 83.84 kB / 3.199 GB, free: 119.1 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.282/7.96, allocations: 0.6754 GB / 3.874 GB, free: 40.45 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.435e-06/7.96, allocations: 0.5 kB / 3.874 GB, free: 40.45 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001038/7.96, allocations: 40.47 kB / 3.874 GB, free: 40.45 MB / 490.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.01007/7.97, allocations: 2.852 MB / 3.877 GB, free: 39.29 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/7.97, allocations: 9.844 kB / 3.877 GB, free: 39.29 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00444/7.975, allocations: 0.5578 MB / 3.878 GB, free: 39.22 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002471/7.977, allocations: 1.022 MB / 3.879 GB, free: 38.87 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001547/7.977, allocations: 185.1 kB / 3.879 GB, free: 38.77 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002329/7.977, allocations: 117.5 kB / 3.879 GB, free: 38.77 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003855/7.981, allocations: 2.005 MB / 3.881 GB, free: 38.4 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.11e-05/7.981, allocations: 9.375 kB / 3.881 GB, free: 38.4 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001663/7.982, allocations: 52.02 kB / 3.881 GB, free: 38.4 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001066/7.982, allocations: 81.44 kB / 3.881 GB, free: 38.39 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003659/7.985, allocations: 1.751 MB / 3.883 GB, free: 38.38 MB / 490.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.01119/7.997, allocations: 9.35 MB / 3.892 GB, free: 33.13 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002972/8, allocations: 1.474 MB / 3.893 GB, free: 33 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/8.001, allocations: 0.6993 MB / 3.894 GB, free: 32.96 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1078/8.108, allocations: 70.36 MB / 3.963 GB, free: 18.32 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002665/8.111, allocations: 1.07 MB / 3.964 GB, free: 18.19 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=110): time 3.978e-06/8.111, allocations: 0 / 3.964 GB, free: 18.19 MB / 0.5105 GB Notification: Performance of matching and sorting (n=121): time 0.01585/8.127, allocations: 6.512 MB / 3.97 GB, free: 16.67 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/8.127, allocations: 304.5 kB / 3.971 GB, free: 16.32 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/8.128, allocations: 1.039 MB / 3.972 GB, free: 16.15 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001176/8.129, allocations: 47.23 kB / 3.972 GB, free: 16.12 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003574/8.129, allocations: 0.5668 MB / 3.972 GB, free: 15.87 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002821/8.129, allocations: 415.6 kB / 3.973 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.446e-05/8.129, allocations: 31.03 kB / 3.973 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001233/8.129, allocations: 362.1 kB / 3.973 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009733/8.13, allocations: 0.6288 MB / 3.974 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001131/8.132, allocations: 1.038 MB / 3.975 GB, free: 14.83 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002068/8.134, allocations: 1.648 MB / 3.976 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/8.134, allocations: 2.906 kB / 3.976 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.003453/8.137, allocations: 2.124 MB / 3.978 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001706/8.137, allocations: 427.5 kB / 3.979 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/8.137, allocations: 11.56 kB / 3.979 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00636/8.144, allocations: 0.9874 MB / 3.98 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001378/8.145, allocations: 301.8 kB / 3.98 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003886/8.149, allocations: 4.032 MB / 3.984 GB, free: 26.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/8.151, allocations: 135.3 kB / 3.984 GB, free: 26.49 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001424/8.151, allocations: 66.75 kB / 3.984 GB, free: 26.49 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.639e-06/8.151, allocations: 3.094 kB / 3.984 GB, free: 26.49 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003111/8.154, allocations: 1.921 MB / 3.986 GB, free: 26.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/8.154, allocations: 11.12 kB / 3.986 GB, free: 26.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005759/8.16, allocations: 0.8653 MB / 3.987 GB, free: 26.35 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/8.161, allocations: 298.2 kB / 3.987 GB, free: 26.35 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002437/8.163, allocations: 3.368 MB / 3.99 GB, free: 23.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/8.165, allocations: 122.2 kB / 3.99 GB, free: 23.73 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/8.165, allocations: 81.45 kB / 3.991 GB, free: 23.73 MB / 0.5261 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.0008091/8.166, allocations: 462.8 kB / 3.991 GB, free: 23.52 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000208/8.166, allocations: 140.2 kB / 3.991 GB, free: 23.45 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005506/8.172, allocations: 4.93 MB / 3.996 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.134e-05/8.172, allocations: 51.2 kB / 3.996 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/8.172, allocations: 3.531 kB / 3.996 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.569e-05/8.172, allocations: 7.078 kB / 3.996 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007339/8.179, allocations: 6.742 MB / 4.003 GB, free: 22.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/8.179, allocations: 0 / 4.003 GB, free: 22.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007297/8.18, allocations: 170 kB / 4.003 GB, free: 22.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004126/8.184, allocations: 1.376 MB / 4.004 GB, free: 22.27 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001365/8.184, allocations: 39.73 kB / 4.004 GB, free: 22.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003216/8.187, allocations: 4.46 MB / 4.008 GB, free: 19.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/8.187, allocations: 0 / 4.008 GB, free: 19.13 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005767/8.193, allocations: 4.866 MB / 4.013 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009108/8.194, allocations: 0.5531 MB / 4.014 GB, free: 18.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002338/8.194, allocations: 25.28 kB / 4.014 GB, free: 18.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/8.195, allocations: 109.2 kB / 4.014 GB, free: 18.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000237/8.196, allocations: 119.2 kB / 4.014 GB, free: 18.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.853e-05/8.196, allocations: 49.72 kB / 4.014 GB, free: 18.4 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00124/8.197, allocations: 0.9818 MB / 4.015 GB, free: 18.29 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.41e-07/8.197, allocations: 0 / 4.015 GB, free: 18.29 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006878/8.204, allocations: 2.091 MB / 4.017 GB, free: 18 MB / 0.5261 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.008912/8.213, allocations: 2.357 MB / 4.019 GB, free: 17.43 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005921/8.219, allocations: 3.106 MB / 4.022 GB, free: 17.35 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.799e-06/8.219, allocations: 0 / 4.022 GB, free: 17.35 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00285/8.222, allocations: 1.513 MB / 4.024 GB, free: 17.31 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003561/8.225, allocations: 0.6517 MB / 4.024 GB, free: 17.28 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006933/8.232, allocations: 5.199 MB / 4.03 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008913/8.233, allocations: 1.496 MB / 4.031 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.002415/8.236, allocations: 1.383 MB / 4.032 GB, free: 14.28 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002956/8.236, allocations: 124.4 kB / 4.033 GB, free: 14.27 MB / 0.5261 GB Notification: Performance of SimCode: time 5.91e-07/8.236, allocations: 0 / 4.033 GB, free: 14.27 MB / 0.5261 GB Notification: Performance of Templates: time 0.3503/8.586, allocations: 70.77 MB / 4.102 GB, free: 84.05 MB / 0.5261 GB 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","../files/Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches