Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002845/0.002844, allocations: 198.6 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.781/2.781, allocations: 226.5 MB / 245.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001157/0.001156, allocations: 91.72 kB / 297.4 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004999/0.0005002, allocations: 4 kB / 357.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6135/0.614, allocations: 51.29 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.77/2.384, allocations: 322.6 MB / 0.7141 GB, free: 149.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005399/2.385, allocations: 83.06 kB / 0.7142 GB, free: 149 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.635/4.02, allocations: 272.9 MB / 0.9806 GB, free: 53.09 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.488e-06/4.02, allocations: 0 / 0.9806 GB, free: 53.09 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003554/4.02, allocations: 43.3 kB / 0.9807 GB, free: 53.05 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.01347/4.034, allocations: 1.98 MB / 0.9826 GB, free: 51.04 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.187e-05/4.034, allocations: 8.031 kB / 0.9826 GB, free: 51.04 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0025/4.036, allocations: 179 kB / 0.9828 GB, free: 50.86 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006609/4.043, allocations: 1.165 MB / 0.9839 GB, free: 49.68 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.004538/4.048, allocations: 172.5 kB / 0.9841 GB, free: 49.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001175/4.049, allocations: 99.83 kB / 0.9842 GB, free: 49.41 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007827/4.057, allocations: 1.782 MB / 0.9859 GB, free: 47.59 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.275e-05/4.057, allocations: 7.844 kB / 0.9859 GB, free: 47.58 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003282/4.057, allocations: 44.67 kB / 0.986 GB, free: 47.55 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002812/4.058, allocations: 109.9 kB / 0.9861 GB, free: 47.44 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005715/4.063, allocations: 1.768 MB / 0.9878 GB, free: 45.66 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02162/4.085, allocations: 6.322 MB / 0.994 GB, free: 39.12 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003241/4.088, allocations: 1.182 MB / 0.9951 GB, free: 37.92 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001744/4.09, allocations: 0.7155 MB / 0.9958 GB, free: 37.21 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01124/4.102, allocations: 4.129 MB / 0.9999 GB, free: 32.7 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.282e-05/4.102, allocations: 51.56 kB / 0.9999 GB, free: 32.64 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002567/4.104, allocations: 213.6 kB / 1 GB, free: 32.43 MB / 458.7 MB Notification: Performance of pre-optimization done (n=97): time 1.562e-05/4.104, allocations: 0 / 1 GB, free: 32.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=112): time 0.03577/4.14, allocations: 5.465 MB / 1.005 GB, free: 26.91 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001438/4.14, allocations: 141.5 kB / 1.006 GB, free: 26.74 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003515/4.144, allocations: 1.242 MB / 1.007 GB, free: 25.49 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005895/4.145, allocations: 49.7 kB / 1.007 GB, free: 25.43 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008569/4.146, allocations: 0.6003 MB / 1.007 GB, free: 24.83 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009702/4.147, allocations: 390.3 kB / 1.008 GB, free: 24.45 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/4.147, allocations: 28 kB / 1.008 GB, free: 24.42 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002789/4.147, allocations: 361.9 kB / 1.008 GB, free: 24.06 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002978/4.15, allocations: 0.6363 MB / 1.009 GB, free: 23.43 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002613/4.153, allocations: 0.9743 MB / 1.01 GB, free: 22.32 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009652/4.162, allocations: 1.596 MB / 1.011 GB, free: 20.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.612e-05/4.163, allocations: 0 / 1.011 GB, free: 20.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.009919/4.172, allocations: 2.112 MB / 1.013 GB, free: 18.48 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005109/4.173, allocations: 360.7 kB / 1.014 GB, free: 18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.195e-05/4.173, allocations: 12 kB / 1.014 GB, free: 17.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01067/4.184, allocations: 1.222 MB / 1.015 GB, free: 16.76 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003009/4.187, allocations: 287.6 kB / 1.015 GB, free: 16.48 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004978/4.192, allocations: 1.532 MB / 1.017 GB, free: 14.92 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008033/4.2, allocations: 95.78 kB / 1.017 GB, free: 14.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009462/4.201, allocations: 71.91 kB / 1.017 GB, free: 14.75 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/4.201, allocations: 4 kB / 1.017 GB, free: 14.75 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008496/4.21, allocations: 1.882 MB / 1.019 GB, free: 12.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.966e-05/4.21, allocations: 8 kB / 1.019 GB, free: 12.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01004/4.22, allocations: 1.072 MB / 1.02 GB, free: 11.78 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002494/4.223, allocations: 295.6 kB / 1.02 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004131/4.227, allocations: 1.368 MB / 1.021 GB, free: 10.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003762/4.231, allocations: 87.73 kB / 1.021 GB, free: 10.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007226/4.232, allocations: 71.95 kB / 1.022 GB, free: 9.941 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.002528/4.234, allocations: 452.7 kB / 1.022 GB, free: 9.488 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00104/4.235, allocations: 146.2 kB / 1.022 GB, free: 9.344 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007098/4.242, allocations: 2.027 MB / 1.024 GB, free: 7.309 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.667e-05/4.242, allocations: 12 kB / 1.024 GB, free: 7.297 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/4.242, allocations: 3.938 kB / 1.024 GB, free: 7.293 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-05/4.242, allocations: 7.969 kB / 1.024 GB, free: 7.285 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009827/4.252, allocations: 3.426 MB / 1.027 GB, free: 3.805 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/4.252, allocations: 3.984 kB / 1.027 GB, free: 3.801 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001678/4.254, allocations: 191.8 kB / 1.028 GB, free: 3.613 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006105/4.26, allocations: 0.9572 MB / 1.029 GB, free: 2.652 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004516/4.261, allocations: 35.92 kB / 1.029 GB, free: 2.617 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003411/4.264, allocations: 1.564 MB / 1.03 GB, free: 1.027 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/4.264, allocations: 0 / 1.03 GB, free: 1.027 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.7552/5.019, allocations: 2.746 MB / 1.033 GB, free: 70.48 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002735/5.022, allocations: 392.2 kB / 1.033 GB, free: 70.38 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001328/5.024, allocations: 31.05 kB / 1.033 GB, free: 70.38 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00307/5.027, allocations: 84.41 kB / 1.033 GB, free: 70.38 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006477/5.028, allocations: 103.1 kB / 1.033 GB, free: 70.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004811/5.028, allocations: 49.02 kB / 1.033 GB, free: 70.38 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003322/5.031, allocations: 0.8398 MB / 1.034 GB, free: 70.27 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.71e-07/5.031, allocations: 0 / 1.034 GB, free: 70.27 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01064/5.042, allocations: 1.254 MB / 1.035 GB, free: 70.27 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.01166/5.054, allocations: 1.073 MB / 1.037 GB, free: 70.18 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01179/5.066, allocations: 2.619 MB / 1.039 GB, free: 70.15 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.608e-05/5.066, allocations: 2.281 kB / 1.039 GB, free: 70.15 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008056/5.074, allocations: 0.8293 MB / 1.04 GB, free: 70.14 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006792/5.081, allocations: 0.6163 MB / 1.041 GB, free: 70.13 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01404/5.095, allocations: 3.592 MB / 1.044 GB, free: 68.87 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002069/5.097, allocations: 1.288 MB / 1.045 GB, free: 68.16 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001195/5.098, allocations: 144.9 kB / 1.045 GB, free: 68.15 MB / 458.7 MB Notification: Performance of SimCode: time 2.796e-06/5.098, allocations: 0 / 1.045 GB, free: 68.15 MB / 458.7 MB Notification: Performance of Templates: time 0.1037/5.202, allocations: 35.87 MB / 1.08 GB, free: 66.11 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches