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.001014/0.001014, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008515/0.0008517, allocations: 103.1 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.424e-05/1.427e-05, allocations: 4 kB / 343.7 MB, free: 8.277 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09867/0.09869, allocations: 51.49 MB / 395.2 MB, free: 4.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.415/8.513, allocations: 2.798 GB / 3.184 GB, free: 71.69 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003408/8.514, allocations: 82.45 kB / 3.184 GB, free: 71.66 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.568/12.08, allocations: 0.7064 GB / 3.89 GB, free: 33.8 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.475e-06/12.08, allocations: 0 / 3.89 GB, free: 33.8 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002194/12.08, allocations: 38.38 kB / 3.89 GB, free: 33.8 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.01627/12.1, allocations: 2.726 MB / 3.893 GB, free: 32.38 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.867e-05/12.1, allocations: 6.781 kB / 3.893 GB, free: 32.38 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005773/12.1, allocations: 0.5695 MB / 3.894 GB, free: 32.3 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005038/12.11, allocations: 0.9925 MB / 3.895 GB, free: 31.95 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003776/12.11, allocations: 144.3 kB / 3.895 GB, free: 31.85 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009311/12.11, allocations: 67.81 kB / 3.895 GB, free: 31.85 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004341/12.12, allocations: 1.394 MB / 3.896 GB, free: 31.84 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00564/12.12, allocations: 1.616 MB / 3.898 GB, free: 31.46 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-05/12.12, allocations: 7.75 kB / 3.898 GB, free: 31.46 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004829/12.12, allocations: 3.844 kB / 3.898 GB, free: 31.46 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001532/12.12, allocations: 80.02 kB / 3.898 GB, free: 31.46 MB / 474.7 MB Warning: The model contains alias variables with conflicting start and/or 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.7462/12.87, allocations: 146.9 MB / 4.041 GB, free: 24.41 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002169/12.87, allocations: 1.068 MB / 4.042 GB, free: 24.38 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/12.87, allocations: 0.5789 MB / 4.043 GB, free: 24.37 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1309/13, allocations: 70.59 MB / 4.112 GB, free: 24.71 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001611/13, allocations: 0.7268 MB / 4.113 GB, free: 24.63 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=96): time 3.316e-06/13, allocations: 0 / 4.113 GB, free: 24.63 MB / 0.5417 GB Notification: Performance of matching and sorting (n=107): time 0.01932/13.02, allocations: 5.739 MB / 4.118 GB, free: 24.09 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001906/13.02, allocations: 197.6 kB / 4.118 GB, free: 23.87 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001665/13.03, allocations: 0.7045 MB / 4.119 GB, free: 23.74 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001913/13.03, allocations: 32.52 kB / 4.119 GB, free: 23.71 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007554/13.03, allocations: 0.628 MB / 4.12 GB, free: 23.45 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004499/13.03, allocations: 352.3 kB / 4.12 GB, free: 23.27 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.06e-05/13.03, allocations: 0.5625 kB / 4.12 GB, free: 23.27 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001898/13.03, allocations: 366.9 kB / 4.12 GB, free: 22.96 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000862/13.03, allocations: 0.5809 MB / 4.121 GB, free: 22.96 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/13.03, allocations: 0.978 MB / 4.122 GB, free: 22.51 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00496/13.03, allocations: 1.419 MB / 4.123 GB, free: 22.46 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.36e-05/13.03, allocations: 3.812 kB / 4.123 GB, free: 22.46 MB / 0.5417 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.007535/13.04, allocations: 2.735 MB / 4.126 GB, free: 22.25 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001877/13.04, allocations: 4.362 MB / 4.13 GB, free: 17.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/13.04, allocations: 11.59 kB / 4.13 GB, free: 17.69 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001602/13.04, allocations: 0.6864 MB / 4.131 GB, free: 17.62 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/13.05, allocations: 285.3 kB / 4.131 GB, free: 17.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007338/13.05, allocations: 5.897 MB / 4.137 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001918/13.06, allocations: 99.27 kB / 4.137 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/13.06, allocations: 75.88 kB / 4.137 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/13.06, allocations: 4.875 kB / 4.137 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007455/13.06, allocations: 2.487 MB / 4.14 GB, free: 13.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.501e-05/13.06, allocations: 13.81 kB / 4.14 GB, free: 13.09 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001571/13.06, allocations: 0.621 MB / 4.14 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/13.07, allocations: 299 kB / 4.141 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007867/13.07, allocations: 5.18 MB / 4.146 GB, free: 25.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/13.08, allocations: 90.05 kB / 4.146 GB, free: 25.12 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/13.08, allocations: 78.08 kB / 4.146 GB, free: 25.12 MB / 0.5573 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 150 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {2 1,1 6,2 7,1 1,2 3,1 2,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.000665/13.08, allocations: 160.2 kB / 4.146 GB, free: 25.02 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002622/13.08, allocations: 116.2 kB / 4.146 GB, free: 24.96 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0069/13.08, allocations: 4.121 MB / 4.15 GB, free: 24.57 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-05/13.08, allocations: 39.48 kB / 4.15 GB, free: 24.57 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/13.08, allocations: 0.5625 kB / 4.15 GB, free: 24.57 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/13.08, allocations: 5.062 kB / 4.15 GB, free: 24.57 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009395/13.09, allocations: 5.717 MB / 4.156 GB, free: 24.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/13.09, allocations: 3.875 kB / 4.156 GB, free: 24.07 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006598/13.09, allocations: 157.1 kB / 4.156 GB, free: 24.07 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001891/13.1, allocations: 1.154 MB / 4.157 GB, free: 23.98 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.46e-05/13.1, allocations: 20.52 kB / 4.157 GB, free: 23.98 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005381/13.1, allocations: 4.882 MB / 4.162 GB, free: 20.84 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/13.1, allocations: 0 / 4.162 GB, free: 20.84 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008031/13.11, allocations: 4.622 MB / 4.166 GB, free: 20.42 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001247/13.11, allocations: 382.1 kB / 4.167 GB, free: 20.22 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005879/13.11, allocations: 7.094 kB / 4.167 GB, free: 20.22 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001593/13.11, allocations: 85.25 kB / 4.167 GB, free: 20.21 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003463/13.11, allocations: 109 kB / 4.167 GB, free: 20.21 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001515/13.11, allocations: 42.42 kB / 4.167 GB, free: 20.21 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001368/13.11, allocations: 0.5074 MB / 4.167 GB, free: 19.91 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.91e-07/13.11, allocations: 0 / 4.167 GB, free: 19.91 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01426/13.13, allocations: 1.947 MB / 4.169 GB, free: 18.3 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.medium.T,reservoir.level,PT1.y) * Number of discrete variables: 32 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.01473/13.14, allocations: 2.494 MB / 4.172 GB, free: 16.59 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00841/13.15, allocations: 3.035 MB / 4.175 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/13.15, allocations: 3 kB / 4.175 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003137/13.16, allocations: 1.291 MB / 4.176 GB, free: 14.15 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00382/13.16, allocations: 470.4 kB / 4.176 GB, free: 13.9 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007683/13.17, allocations: 2.989 MB / 4.179 GB, free: 11.79 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001558/13.17, allocations: 1.413 MB / 4.181 GB, free: 10.62 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.003692/13.17, allocations: 1.58 MB / 4.182 GB, free: 9.734 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003961/13.17, allocations: 97.81 kB / 4.182 GB, free: 9.652 MB / 0.5573 GB Notification: Performance of SimCode: time 1.453e-06/13.17, allocations: 0 / 4.182 GB, free: 9.652 MB / 0.5573 GB Notification: Performance of Templates: time 0.5208/13.69, allocations: 58.12 MB / 4.239 GB, free: 127.8 MB / 0.5573 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/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