Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 221.5 MB / 230.3 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008474/0.0008473, allocations: 88.56 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.411e-05/1.413e-05, allocations: 7.938 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 50.42 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8613/0.9671, allocations: 321 MB / 0.6919 GB, free: 7.941 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/0.9674, allocations: 84.77 kB / 0.6919 GB, free: 7.898 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.319/2.286, allocations: 272.8 MB / 0.9583 GB, free: 72.76 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.066e-06/2.286, allocations: 0 / 0.9583 GB, free: 72.76 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002521/2.286, allocations: 32.66 kB / 0.9583 GB, free: 72.75 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.009573/2.296, allocations: 1.809 MB / 0.9601 GB, free: 71.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.102e-05/2.296, allocations: 11.25 kB / 0.9601 GB, free: 71.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002149/2.298, allocations: 178.5 kB / 0.9603 GB, free: 71.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005004/2.303, allocations: 1.12 MB / 0.9614 GB, free: 71.37 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002963/2.304, allocations: 139.4 kB / 0.9615 GB, free: 71.27 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008858/2.305, allocations: 67.03 kB / 0.9616 GB, free: 71.26 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004116/2.309, allocations: 1.595 MB / 0.9631 GB, free: 71.26 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004406/2.313, allocations: 1.594 MB / 0.9647 GB, free: 71.09 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.068e-05/2.313, allocations: 3.844 kB / 0.9647 GB, free: 71.09 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003832/2.314, allocations: 0 / 0.9647 GB, free: 71.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002014/2.314, allocations: 116.8 kB / 0.9648 GB, free: 71.08 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01426/2.328, allocations: 6.121 MB / 0.9708 GB, free: 69.14 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001946/2.33, allocations: 1.118 MB / 0.9719 GB, free: 69.11 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/2.331, allocations: 0.6803 MB / 0.9725 GB, free: 69.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006601/2.338, allocations: 4.176 MB / 0.9766 GB, free: 66.75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.754e-05/2.338, allocations: 57.17 kB / 0.9767 GB, free: 66.7 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001231/2.339, allocations: 174.9 kB / 0.9768 GB, free: 66.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 6.312e-06/2.339, allocations: 0 / 0.9768 GB, free: 66.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=112): time 0.01305/2.352, allocations: 4.117 MB / 0.9809 GB, free: 66.05 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/2.352, allocations: 141.5 kB / 0.981 GB, free: 65.89 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001798/2.354, allocations: 0.817 MB / 0.9818 GB, free: 65.52 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001786/2.354, allocations: 25.7 kB / 0.9818 GB, free: 65.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004763/2.355, allocations: 0.6101 MB / 0.9824 GB, free: 65 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003824/2.355, allocations: 369 kB / 0.9828 GB, free: 64.71 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/2.355, allocations: 0 / 0.9828 GB, free: 64.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/2.355, allocations: 366.4 kB / 0.9831 GB, free: 64.38 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009385/2.356, allocations: 0.6086 MB / 0.9837 GB, free: 64.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001191/2.358, allocations: 0.9249 MB / 0.9846 GB, free: 63.53 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00433/2.362, allocations: 1.351 MB / 0.9859 GB, free: 63.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.839e-05/2.362, allocations: 3.875 kB / 0.9859 GB, free: 63.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.006984/2.369, allocations: 2.591 MB / 0.9885 GB, free: 62.45 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00108/2.37, allocations: 3.49 MB / 0.9919 GB, free: 58.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.388e-05/2.37, allocations: 10.62 kB / 0.9919 GB, free: 58.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005706/2.376, allocations: 1.067 MB / 0.9929 GB, free: 58.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001773/2.378, allocations: 298 kB / 0.9932 GB, free: 58.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00418/2.382, allocations: 1.883 MB / 0.995 GB, free: 57.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002059/2.384, allocations: 60.08 kB / 0.9951 GB, free: 57.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004456/2.385, allocations: 69.53 kB / 0.9952 GB, free: 57.62 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/2.385, allocations: 16.33 kB / 0.9952 GB, free: 57.61 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01005/2.395, allocations: 2.279 MB / 0.9974 GB, free: 57.01 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-05/2.395, allocations: 7.281 kB / 0.9974 GB, free: 57.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008041/2.403, allocations: 1.008 MB / 0.9984 GB, free: 56.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002239/2.405, allocations: 305.5 kB / 0.9987 GB, free: 56.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00454/2.41, allocations: 1.62 MB / 1 GB, free: 56.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00259/2.412, allocations: 60.86 kB / 1 GB, free: 56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005677/2.413, allocations: 70.61 kB / 1 GB, free: 55.99 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.001021/2.414, allocations: 147.7 kB / 1.001 GB, free: 55.85 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008894/2.415, allocations: 127.2 kB / 1.001 GB, free: 55.79 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008493/2.423, allocations: 2.141 MB / 1.003 GB, free: 54.84 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.169e-05/2.423, allocations: 15.95 kB / 1.003 GB, free: 54.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/2.423, allocations: 0 / 1.003 GB, free: 54.82 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.158e-05/2.423, allocations: 11.34 kB / 1.003 GB, free: 54.82 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/2.435, allocations: 3.447 MB / 1.006 GB, free: 52.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/2.435, allocations: 3.938 kB / 1.006 GB, free: 52.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/2.436, allocations: 192.2 kB / 1.006 GB, free: 51.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003099/2.439, allocations: 0.795 MB / 1.007 GB, free: 51.21 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001123/2.439, allocations: 21.67 kB / 1.007 GB, free: 51.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003417/2.443, allocations: 1.881 MB / 1.009 GB, free: 49.29 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/2.443, allocations: 0 / 1.009 GB, free: 49.29 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005698/2.448, allocations: 2.874 MB / 1.012 GB, free: 46.41 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001189/2.449, allocations: 379.3 kB / 1.012 GB, free: 46.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005092/2.45, allocations: 0 / 1.012 GB, free: 46.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001457/2.451, allocations: 67.53 kB / 1.012 GB, free: 45.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/2.452, allocations: 101 kB / 1.012 GB, free: 45.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001888/2.452, allocations: 51.97 kB / 1.012 GB, free: 45.81 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001073/2.453, allocations: 0.5991 MB / 1.013 GB, free: 45.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/2.453, allocations: 0 / 1.013 GB, free: 45.21 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004799/2.458, allocations: 1.163 MB / 1.014 GB, free: 44.04 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.0032/2.461, allocations: 1.052 MB / 1.015 GB, free: 43.12 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004923/2.466, allocations: 2.475 MB / 1.018 GB, free: 40.65 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/2.466, allocations: 0 / 1.018 GB, free: 40.65 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001484/2.468, allocations: 0.7817 MB / 1.018 GB, free: 39.87 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00345/2.471, allocations: 0.5353 MB / 1.019 GB, free: 39.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005181/2.476, allocations: 2.331 MB / 1.021 GB, free: 37.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007622/2.477, allocations: 1.332 MB / 1.022 GB, free: 35.69 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002451/2.479, allocations: 0.5645 MB / 1.023 GB, free: 35.16 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003124/2.48, allocations: 103.4 kB / 1.023 GB, free: 35.06 MB / 442.7 MB Notification: Performance of SimCode: time 2.124e-06/2.48, allocations: 0 / 1.023 GB, free: 35.06 MB / 442.7 MB Notification: Performance of Templates: time 0.3975/2.877, allocations: 38 MB / 1.06 GB, free: 68.74 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches