Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0011/0.0011, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 227.2 MB / 245 MB, free: 5.852 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001096/0.001096, allocations: 103 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002953/0.0002954, allocations: 4 kB / 357.9 MB, free: 9.328 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2439, allocations: 51.49 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7388/0.9828, allocations: 322.5 MB / 0.7148 GB, free: 146.5 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003246/0.9832, allocations: 84.17 kB / 0.7149 GB, free: 146.5 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8289/1.812, allocations: 274.6 MB / 0.983 GB, free: 48.59 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.854e-06/1.812, allocations: 0 / 0.983 GB, free: 48.59 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001853/1.812, allocations: 36 kB / 0.983 GB, free: 48.55 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.007012/1.819, allocations: 2.006 MB / 0.985 GB, free: 46.49 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/1.819, allocations: 12.03 kB / 0.985 GB, free: 46.48 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001043/1.82, allocations: 174.1 kB / 0.9852 GB, free: 46.31 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003043/1.823, allocations: 1.128 MB / 0.9863 GB, free: 45.14 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/1.824, allocations: 175.1 kB / 0.9864 GB, free: 44.95 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002559/1.824, allocations: 95.97 kB / 0.9865 GB, free: 44.86 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002562/1.826, allocations: 1.767 MB / 0.9883 GB, free: 43.03 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/1.827, allocations: 3.938 kB / 0.9883 GB, free: 43.02 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001462/1.827, allocations: 47.97 kB / 0.9883 GB, free: 42.98 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000122/1.827, allocations: 117.9 kB / 0.9884 GB, free: 42.86 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00227/1.829, allocations: 1.772 MB / 0.9902 GB, free: 41.08 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009996/1.839, allocations: 6.373 MB / 0.9964 GB, free: 34.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001419/1.841, allocations: 1.169 MB / 0.9975 GB, free: 33.24 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004731/1.845, allocations: 4.161 MB / 1.002 GB, free: 28.66 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/1.845, allocations: 47.56 kB / 1.002 GB, free: 28.61 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000881/1.846, allocations: 206.6 kB / 1.002 GB, free: 28.41 MB / 458.7 MB Notification: Performance of pre-optimization done (n=97): time 2.635e-06/1.846, allocations: 0 / 1.002 GB, free: 28.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=112): time 0.01525/1.861, allocations: 5.365 MB / 1.007 GB, free: 22.99 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/1.862, allocations: 145.5 kB / 1.007 GB, free: 22.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001265/1.863, allocations: 1.106 MB / 1.008 GB, free: 21.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001066/1.863, allocations: 49.7 kB / 1.008 GB, free: 21.65 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003213/1.863, allocations: 0.5975 MB / 1.009 GB, free: 21.04 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/1.864, allocations: 386.4 kB / 1.009 GB, free: 20.66 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.829e-05/1.864, allocations: 32 kB / 1.009 GB, free: 20.63 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.494e-05/1.864, allocations: 365.9 kB / 1.01 GB, free: 20.27 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008319/1.865, allocations: 0.6324 MB / 1.01 GB, free: 19.63 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009697/1.866, allocations: 0.9665 MB / 1.011 GB, free: 18.54 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009581/1.867, allocations: 0.7562 MB / 1.012 GB, free: 17.78 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/1.867, allocations: 8 kB / 1.012 GB, free: 17.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00291/1.869, allocations: 2.101 MB / 1.014 GB, free: 15.66 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006108/1.87, allocations: 3.519 MB / 1.017 GB, free: 11.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/1.87, allocations: 8 kB / 1.017 GB, free: 11.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006816/1.877, allocations: 1.218 MB / 1.019 GB, free: 10.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/1.878, allocations: 295.5 kB / 1.019 GB, free: 10.37 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001959/1.88, allocations: 1.525 MB / 1.02 GB, free: 8.816 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/1.882, allocations: 83.86 kB / 1.021 GB, free: 8.734 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001404/1.882, allocations: 71.95 kB / 1.021 GB, free: 8.664 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/1.882, allocations: 6.656 kB / 1.021 GB, free: 8.66 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002667/1.885, allocations: 1.888 MB / 1.022 GB, free: 6.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/1.885, allocations: 8 kB / 1.022 GB, free: 6.762 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006096/1.891, allocations: 1.066 MB / 1.023 GB, free: 5.691 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/1.892, allocations: 299.6 kB / 1.024 GB, free: 5.398 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001596/1.893, allocations: 1.375 MB / 1.025 GB, free: 4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/1.895, allocations: 87.8 kB / 1.025 GB, free: 3.914 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001651/1.895, allocations: 67.95 kB / 1.025 GB, free: 3.848 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0008764/1.896, allocations: 462 kB / 1.026 GB, free: 3.387 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000395/1.896, allocations: 146.2 kB / 1.026 GB, free: 3.242 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003897/1.9, allocations: 2.034 MB / 1.028 GB, free: 1.195 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/1.9, allocations: 16 kB / 1.028 GB, free: 1.18 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/1.9, allocations: 4 kB / 1.028 GB, free: 1.176 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/1.9, allocations: 7.969 kB / 1.028 GB, free: 1.168 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2981/2.198, allocations: 3.43 MB / 1.031 GB, free: 68.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/2.198, allocations: 2.531 kB / 1.031 GB, free: 68.83 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008909/2.199, allocations: 189.5 kB / 1.031 GB, free: 68.83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003435/2.203, allocations: 0.9543 MB / 1.032 GB, free: 68.82 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/2.203, allocations: 38.67 kB / 1.032 GB, free: 68.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001835/2.205, allocations: 1.561 MB / 1.034 GB, free: 68.29 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/2.205, allocations: 0 / 1.034 GB, free: 68.29 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003982/2.209, allocations: 2.752 MB / 1.037 GB, free: 68.11 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000862/2.21, allocations: 397.6 kB / 1.037 GB, free: 68.01 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/2.21, allocations: 25.06 kB / 1.037 GB, free: 68.01 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/2.211, allocations: 95.84 kB / 1.037 GB, free: 68.01 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001949/2.211, allocations: 97.56 kB / 1.037 GB, free: 68.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/2.211, allocations: 49.39 kB / 1.037 GB, free: 68.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001094/2.212, allocations: 0.8425 MB / 1.038 GB, free: 67.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/2.212, allocations: 0 / 1.038 GB, free: 67.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003487/2.216, allocations: 1.256 MB / 1.039 GB, free: 67.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.002149/2.218, allocations: 1.064 MB / 1.04 GB, free: 67.81 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005994/2.224, allocations: 2.62 MB / 1.043 GB, free: 67.77 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/2.224, allocations: 3.875 kB / 1.043 GB, free: 67.77 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001572/2.226, allocations: 0.8357 MB / 1.044 GB, free: 67.75 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002805/2.228, allocations: 0.6005 MB / 1.044 GB, free: 67.75 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005377/2.234, allocations: 3.516 MB / 1.048 GB, free: 66.52 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000696/2.234, allocations: 1.318 MB / 1.049 GB, free: 65.8 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001988/2.236, allocations: 0.5619 MB / 1.05 GB, free: 65.79 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003415/2.237, allocations: 128.6 kB / 1.05 GB, free: 65.78 MB / 458.7 MB Notification: Performance of SimCode: time 1.462e-06/2.237, allocations: 2.531 kB / 1.05 GB, free: 65.78 MB / 458.7 MB Notification: Performance of Templates: time 0.05839/2.295, allocations: 40.42 MB / 1.089 GB, free: 63.9 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches