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.0009606/0.0009606, allocations: 201.8 kB / 8.767 MB, free: 288 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001068/0.001068, allocations: 96.47 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.404e-05/1.409e-05, allocations: 4 kB / 343.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1088, allocations: 51.48 MB / 395.2 MB, free: 4.773 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9147/1.024, allocations: 321.8 MB / 0.7002 GB, free: 35.55 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/1.024, allocations: 81.2 kB / 0.7002 GB, free: 35.51 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.247/2.271, allocations: 271.9 MB / 0.9658 GB, free: 57.41 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.304e-06/2.271, allocations: 0 / 0.9658 GB, free: 57.41 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000149/2.271, allocations: 37.11 kB / 0.9658 GB, free: 57.41 MB / 442.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.006276/2.278, allocations: 1.821 MB / 0.9676 GB, free: 56.48 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/2.278, allocations: 10.69 kB / 0.9676 GB, free: 56.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006963/2.278, allocations: 180.8 kB / 0.9678 GB, free: 56.4 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002313/2.281, allocations: 1.115 MB / 0.9689 GB, free: 56.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/2.281, allocations: 147 kB / 0.969 GB, free: 55.97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001693/2.281, allocations: 59.94 kB / 0.9691 GB, free: 55.96 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002421/2.283, allocations: 1.6 MB / 0.9707 GB, free: 55.96 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002468/2.286, allocations: 1.591 MB / 0.9722 GB, free: 55.79 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.43e-05/2.286, allocations: 9.844 kB / 0.9722 GB, free: 55.79 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001431/2.286, allocations: 3.938 kB / 0.9722 GB, free: 55.79 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001355/2.286, allocations: 112 kB / 0.9723 GB, free: 55.78 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01029/2.297, allocations: 6.122 MB / 0.9783 GB, free: 53.85 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/2.298, allocations: 1.119 MB / 0.9794 GB, free: 53.81 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008425/2.299, allocations: 0.6821 MB / 0.9801 GB, free: 53.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005449/2.304, allocations: 4.181 MB / 0.9841 GB, free: 51.46 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/2.304, allocations: 45.22 kB / 0.9842 GB, free: 51.42 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009153/2.305, allocations: 168.9 kB / 0.9844 GB, free: 51.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 3.547e-06/2.305, allocations: 0 / 0.9844 GB, free: 51.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=112): time 0.01097/2.316, allocations: 4.106 MB / 0.9884 GB, free: 50.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.597e-05/2.316, allocations: 143.5 kB / 0.9885 GB, free: 50.66 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/2.318, allocations: 0.8163 MB / 0.9893 GB, free: 50.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001175/2.318, allocations: 29.61 kB / 0.9893 GB, free: 50.47 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003954/2.318, allocations: 0.6092 MB / 0.9899 GB, free: 50.19 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000332/2.319, allocations: 372.5 kB / 0.9903 GB, free: 49.95 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.802e-05/2.319, allocations: 0 / 0.9903 GB, free: 49.95 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/2.319, allocations: 367.8 kB / 0.9906 GB, free: 49.64 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008283/2.32, allocations: 0.6048 MB / 0.9912 GB, free: 49.63 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009984/2.321, allocations: 0.9273 MB / 0.9921 GB, free: 49.28 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004952/2.326, allocations: 1.512 MB / 0.9936 GB, free: 49.27 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.521e-05/2.326, allocations: 3.5 kB / 0.9936 GB, free: 49.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.007214/2.333, allocations: 2.74 MB / 0.9963 GB, free: 49.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009837/2.334, allocations: 3.49 MB / 0.9997 GB, free: 45.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/2.334, allocations: 10.59 kB / 0.9997 GB, free: 45.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005631/2.34, allocations: 1.075 MB / 1.001 GB, free: 45.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/2.341, allocations: 293.3 kB / 1.001 GB, free: 45.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004071/2.345, allocations: 1.883 MB / 1.003 GB, free: 44.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001905/2.347, allocations: 64.38 kB / 1.003 GB, free: 44.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001742/2.347, allocations: 70.94 kB / 1.003 GB, free: 44.16 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/2.347, allocations: 5.156 kB / 1.003 GB, free: 44.16 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007088/2.354, allocations: 2.44 MB / 1.005 GB, free: 43.56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-05/2.354, allocations: 7.625 kB / 1.005 GB, free: 43.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005524/2.36, allocations: 1.013 MB / 1.006 GB, free: 43.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/2.361, allocations: 298.1 kB / 1.007 GB, free: 43.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003217/2.365, allocations: 1.638 MB / 1.008 GB, free: 42.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001932/2.367, allocations: 54.25 kB / 1.008 GB, free: 42.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003375/2.367, allocations: 65.75 kB / 1.008 GB, free: 42.53 MB / 442.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 () * 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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.000722/2.368, allocations: 148 kB / 1.009 GB, free: 42.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006287/2.368, allocations: 123.9 kB / 1.009 GB, free: 42.34 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005938/2.374, allocations: 2.144 MB / 1.011 GB, free: 41.66 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.524e-05/2.374, allocations: 11.84 kB / 1.011 GB, free: 41.66 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/2.374, allocations: 3.938 kB / 1.011 GB, free: 41.65 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.544e-05/2.374, allocations: 6.891 kB / 1.011 GB, free: 41.65 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008272/2.383, allocations: 3.453 MB / 1.014 GB, free: 40.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/2.383, allocations: 0 / 1.014 GB, free: 40.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000975/2.384, allocations: 190.2 kB / 1.014 GB, free: 40.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00318/2.387, allocations: 0.803 MB / 1.015 GB, free: 40.18 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001572/2.387, allocations: 19.06 kB / 1.015 GB, free: 40.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003753/2.391, allocations: 1.884 MB / 1.017 GB, free: 39.21 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/2.391, allocations: 2.969 kB / 1.017 GB, free: 39.21 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005875/2.397, allocations: 2.862 MB / 1.02 GB, free: 38.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/2.398, allocations: 382.1 kB / 1.02 GB, free: 37.87 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004479/2.398, allocations: 0 / 1.02 GB, free: 37.87 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/2.4, allocations: 65.14 kB / 1.02 GB, free: 37.86 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002231/2.4, allocations: 97.56 kB / 1.02 GB, free: 37.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001422/2.4, allocations: 49.84 kB / 1.02 GB, free: 37.84 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001005/2.401, allocations: 0.6033 MB / 1.021 GB, free: 37.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.31e-07/2.401, allocations: 3.938 kB / 1.021 GB, free: 37.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005229/2.406, allocations: 1.171 MB / 1.022 GB, free: 37.3 MB / 442.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 () * 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.003982/2.41, allocations: 1.061 MB / 1.023 GB, free: 36.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005443/2.416, allocations: 2.473 MB / 1.025 GB, free: 36.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/2.416, allocations: 3.656 kB / 1.025 GB, free: 36.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001603/2.417, allocations: 0.7837 MB / 1.026 GB, free: 35.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003107/2.421, allocations: 0.532 MB / 1.027 GB, free: 35.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00565/2.426, allocations: 2.34 MB / 1.029 GB, free: 33.95 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001132/2.427, allocations: 1.331 MB / 1.03 GB, free: 32.82 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003014/2.43, allocations: 0.5746 MB / 1.031 GB, free: 32.45 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003736/2.431, allocations: 102.7 kB / 1.031 GB, free: 32.36 MB / 442.7 MB Notification: Performance of SimCode: time 1.793e-06/2.431, allocations: 0 / 1.031 GB, free: 32.36 MB / 442.7 MB Notification: Performance of Templates: time 0.06279/2.494, allocations: 37.97 MB / 1.068 GB, free: 15.42 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