Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001486/0.001486, allocations: 181.5 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.056/2.056, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 86.7 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.125e-05/3.135e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08999/0.09005, allocations: 47.58 MB / 369.1 MB, free: 2.211 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9702/1.06, allocations: 321.1 MB / 0.674 GB, free: 3.734 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/1.061, allocations: 79.83 kB / 0.6741 GB, free: 3.695 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.77/2.831, allocations: 269.6 MB / 0.9373 GB, free: 72.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.374e-06/2.831, allocations: 0 / 0.9373 GB, free: 72.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001956/2.831, allocations: 40.14 kB / 0.9374 GB, free: 72.81 MB / 426.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.008419/2.84, allocations: 1.813 MB / 0.9392 GB, free: 71.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/2.84, allocations: 11.69 kB / 0.9392 GB, free: 71.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001511/2.841, allocations: 175.1 kB / 0.9393 GB, free: 71.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004435/2.846, allocations: 1.125 MB / 0.9404 GB, free: 71.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002509/2.846, allocations: 173.7 kB / 0.9406 GB, free: 71.29 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005726/2.847, allocations: 102.8 kB / 0.9407 GB, free: 71.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005038/2.852, allocations: 1.733 MB / 0.9424 GB, free: 71.11 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.51e-05/2.852, allocations: 0 / 0.9424 GB, free: 71.11 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002861/2.852, allocations: 52.52 kB / 0.9424 GB, free: 71.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002597/2.853, allocations: 111.7 kB / 0.9425 GB, free: 71.11 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005289/2.858, allocations: 1.743 MB / 0.9442 GB, free: 71.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02035/2.878, allocations: 6.366 MB / 0.9505 GB, free: 68.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003142/2.881, allocations: 1.152 MB / 0.9516 GB, free: 68.15 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001868/2.883, allocations: 0.6998 MB / 0.9523 GB, free: 67.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009359/2.893, allocations: 4.28 MB / 0.9564 GB, free: 64.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.855e-05/2.893, allocations: 46.28 kB / 0.9565 GB, free: 64.66 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001794/2.895, allocations: 202.7 kB / 0.9567 GB, free: 64.56 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 5.821e-06/2.895, allocations: 0 / 0.9567 GB, free: 64.56 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.01456/2.909, allocations: 3.781 MB / 0.9604 GB, free: 62.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.396e-05/2.909, allocations: 148.2 kB / 0.9605 GB, free: 62.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002302/2.912, allocations: 1.095 MB / 0.9616 GB, free: 61.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004383/2.912, allocations: 44.52 kB / 0.9616 GB, free: 61.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004576/2.913, allocations: 0.5742 MB / 0.9622 GB, free: 61.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005701/2.913, allocations: 383.8 kB / 0.9626 GB, free: 60.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/2.913, allocations: 31.44 kB / 0.9626 GB, free: 60.94 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/2.914, allocations: 372.4 kB / 0.9629 GB, free: 60.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001723/2.915, allocations: 0.6207 MB / 0.9635 GB, free: 60.29 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00201/2.917, allocations: 0.9549 MB / 0.9645 GB, free: 59.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002157/2.92, allocations: 0.746 MB / 0.9652 GB, free: 58.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.022e-05/2.92, allocations: 4 kB / 0.9652 GB, free: 58.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005685/2.925, allocations: 1.991 MB / 0.9672 GB, free: 56.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007713/2.926, allocations: 3.485 MB / 0.9706 GB, free: 53.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/2.926, allocations: 11.61 kB / 0.9706 GB, free: 53.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01288/2.939, allocations: 1.215 MB / 0.9718 GB, free: 51.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002567/2.942, allocations: 297.3 kB / 0.972 GB, free: 51.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003827/2.946, allocations: 1.513 MB / 0.9735 GB, free: 50.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002992/2.949, allocations: 94.02 kB / 0.9736 GB, free: 49.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000585/2.949, allocations: 67.95 kB / 0.9737 GB, free: 49.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/2.949, allocations: 5.562 kB / 0.9737 GB, free: 49.91 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005497/2.955, allocations: 1.856 MB / 0.9755 GB, free: 48.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.624e-05/2.955, allocations: 11.12 kB / 0.9755 GB, free: 48.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01118/2.966, allocations: 1.046 MB / 0.9765 GB, free: 47.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00254/2.969, allocations: 299.2 kB / 0.9768 GB, free: 46.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003075/2.972, allocations: 1.336 MB / 0.9781 GB, free: 45.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00196/2.974, allocations: 91.8 kB / 0.9782 GB, free: 45.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002024/2.974, allocations: 67.95 kB / 0.9783 GB, free: 45.24 MB / 426.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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0005227/2.975, allocations: 187.9 kB / 0.9784 GB, free: 45.05 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004839/2.975, allocations: 150.2 kB / 0.9786 GB, free: 44.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00642/2.982, allocations: 1.999 MB / 0.9805 GB, free: 42.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.966e-05/2.982, allocations: 13.88 kB / 0.9806 GB, free: 42.89 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/2.982, allocations: 7.938 kB / 0.9806 GB, free: 42.89 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-05/2.982, allocations: 3.984 kB / 0.9806 GB, free: 42.88 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009564/2.991, allocations: 3.413 MB / 0.9839 GB, free: 39.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/2.991, allocations: 2.375 kB / 0.9839 GB, free: 39.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001834/2.993, allocations: 187.8 kB / 0.9841 GB, free: 39.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006287/2.999, allocations: 0.9407 MB / 0.985 GB, free: 38.34 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003882/3, allocations: 38.53 kB / 0.985 GB, free: 38.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003168/3.003, allocations: 1.56 MB / 0.9866 GB, free: 36.72 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/3.003, allocations: 0 / 0.9866 GB, free: 36.72 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006584/3.01, allocations: 2.706 MB / 0.9892 GB, free: 34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001337/3.011, allocations: 403 kB / 0.9896 GB, free: 33.58 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003531/3.012, allocations: 26.91 kB / 0.9896 GB, free: 33.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001975/3.014, allocations: 87.72 kB / 0.9897 GB, free: 33.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003136/3.014, allocations: 101.2 kB / 0.9898 GB, free: 33.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001816/3.014, allocations: 47.72 kB / 0.9898 GB, free: 33.34 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001607/3.016, allocations: 0.8303 MB / 0.9906 GB, free: 32.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.71e-07/3.016, allocations: 6.375 kB / 0.9907 GB, free: 32.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005055/3.021, allocations: 1.245 MB / 0.9919 GB, free: 31.25 MB / 426.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.00366/3.024, allocations: 1.071 MB / 0.9929 GB, free: 30.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009539/3.034, allocations: 2.551 MB / 0.9954 GB, free: 27.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/3.034, allocations: 0 / 0.9954 GB, free: 27.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003042/3.037, allocations: 0.8194 MB / 0.9962 GB, free: 26.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005229/3.042, allocations: 0.6084 MB / 0.9968 GB, free: 26.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008111/3.051, allocations: 2.491 MB / 0.9992 GB, free: 23.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009098/3.052, allocations: 1.311 MB / 1.001 GB, free: 22.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009703/3.053, allocations: 147.4 kB / 1.001 GB, free: 22.33 MB / 426.7 MB Notification: Performance of SimCode: time 1.402e-06/3.053, allocations: 0 / 1.001 GB, free: 22.33 MB / 426.7 MB Notification: Performance of Templates: time 0.3847/3.437, allocations: 35.49 MB / 1.035 GB, free: 61.54 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches