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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002658/0.002664, allocations: 175.4 kB / 8.151 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.9/1.9, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001297/0.001297, allocations: 91.34 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.917e-06/9.077e-06, allocations: 0 / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2449, allocations: 47.56 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8204/1.065, allocations: 320.3 MB / 0.6662 GB, free: 117.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/1.066, allocations: 80.64 kB / 0.6663 GB, free: 117.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.144/2.21, allocations: 269.1 MB / 0.9291 GB, free: 62.53 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001897/2.21, allocations: 43.88 kB / 0.9291 GB, free: 62.49 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.008662/2.219, allocations: 1.842 MB / 0.9309 GB, free: 60.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/2.219, allocations: 8.031 kB / 0.9309 GB, free: 60.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001449/2.22, allocations: 178 kB / 0.9311 GB, free: 60.45 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004464/2.225, allocations: 1.132 MB / 0.9322 GB, free: 59.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002133/2.225, allocations: 139 kB / 0.9323 GB, free: 59.14 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005037/2.226, allocations: 60 kB / 0.9324 GB, free: 59.08 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005208/2.231, allocations: 1.632 MB / 0.934 GB, free: 57.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004754/2.236, allocations: 1.627 MB / 0.9356 GB, free: 55.76 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.864e-05/2.236, allocations: 3.906 kB / 0.9356 GB, free: 55.76 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002648/2.236, allocations: 0 / 0.9356 GB, free: 55.76 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001713/2.236, allocations: 117.9 kB / 0.9357 GB, free: 55.64 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01939/2.256, allocations: 6.181 MB / 0.9417 GB, free: 49.31 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002311/2.258, allocations: 0.881 MB / 0.9426 GB, free: 48.43 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001753/2.26, allocations: 0.691 MB / 0.9433 GB, free: 47.74 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009341/2.269, allocations: 4.164 MB / 0.9473 GB, free: 43.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.441e-05/2.269, allocations: 47.33 kB / 0.9474 GB, free: 43.14 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 4.228e-06/2.269, allocations: 0 / 0.9474 GB, free: 43.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.02225/2.292, allocations: 4.277 MB / 0.9516 GB, free: 38.87 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.227e-05/2.292, allocations: 141.5 kB / 0.9517 GB, free: 38.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001785/2.294, allocations: 0.816 MB / 0.9525 GB, free: 37.87 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004426/2.294, allocations: 25.7 kB / 0.9525 GB, free: 37.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002268/2.294, allocations: 481 kB / 0.953 GB, free: 37.37 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000598/2.295, allocations: 366.5 kB / 0.9533 GB, free: 37 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001577/2.295, allocations: 0 / 0.9533 GB, free: 37 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/2.295, allocations: 370.8 kB / 0.9537 GB, free: 36.63 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001838/2.297, allocations: 0.6248 MB / 0.9543 GB, free: 36.01 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00215/2.299, allocations: 0.9474 MB / 0.9552 GB, free: 34.94 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02034/2.32, allocations: 2.475 MB / 0.9576 GB, free: 32.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.167e-05/2.32, allocations: 2.281 kB / 0.9576 GB, free: 32.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.02463/2.344, allocations: 3.661 MB / 0.9612 GB, free: 28.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007426/2.345, allocations: 3.485 MB / 0.9646 GB, free: 25.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.611e-05/2.345, allocations: 8 kB / 0.9646 GB, free: 25.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01247/2.358, allocations: 1.096 MB / 0.9657 GB, free: 24.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002573/2.36, allocations: 291.5 kB / 0.966 GB, free: 23.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006977/2.367, allocations: 1.935 MB / 0.9679 GB, free: 21.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002185/2.37, allocations: 55.8 kB / 0.9679 GB, free: 21.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002485/2.37, allocations: 75.97 kB / 0.968 GB, free: 21.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/2.37, allocations: 7.938 kB / 0.968 GB, free: 21.64 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02296/2.393, allocations: 3.426 MB / 0.9713 GB, free: 18.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.621e-05/2.393, allocations: 8 kB / 0.9713 GB, free: 18.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01202/2.405, allocations: 1.035 MB / 0.9724 GB, free: 17.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0026/2.408, allocations: 299.5 kB / 0.9726 GB, free: 16.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005731/2.413, allocations: 1.684 MB / 0.9743 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002142/2.416, allocations: 55.86 kB / 0.9743 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002444/2.416, allocations: 71.95 kB / 0.9744 GB, free: 15.05 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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0005558/2.417, allocations: 69.27 kB / 0.9745 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004887/2.417, allocations: 130.4 kB / 0.9746 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01046/2.427, allocations: 2.261 MB / 0.9768 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.076e-05/2.428, allocations: 12 kB / 0.9768 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/2.428, allocations: 7.906 kB / 0.9768 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-05/2.428, allocations: 3.984 kB / 0.9768 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01283/2.44, allocations: 3.529 MB / 0.9803 GB, free: 9.004 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.516e-05/2.441, allocations: 0 / 0.9803 GB, free: 9.004 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002084/2.443, allocations: 203.7 kB / 0.9805 GB, free: 8.805 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005872/2.449, allocations: 0.8192 MB / 0.9813 GB, free: 7.996 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003982/2.449, allocations: 19.98 kB / 0.9813 GB, free: 7.977 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006461/2.456, allocations: 1.959 MB / 0.9832 GB, free: 5.988 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/2.456, allocations: 4 kB / 0.9832 GB, free: 5.984 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01012/2.466, allocations: 2.985 MB / 0.9861 GB, free: 2.984 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001301/2.467, allocations: 379.2 kB / 0.9865 GB, free: 2.594 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003927/2.468, allocations: 4 kB / 0.9865 GB, free: 2.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002068/2.47, allocations: 67.78 kB / 0.9865 GB, free: 2.523 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003208/2.47, allocations: 93.34 kB / 0.9866 GB, free: 2.434 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001984/2.47, allocations: 47.97 kB / 0.9867 GB, free: 2.387 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001184/2.471, allocations: 0.6084 MB / 0.9873 GB, free: 1.77 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005004/2.476, allocations: 1.171 MB / 0.9884 GB, free: 0.5977 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.177/2.653, allocations: 1.04 MB / 0.9894 GB, free: 106.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01011/2.664, allocations: 2.501 MB / 0.9919 GB, free: 106.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/2.664, allocations: 0 / 0.9919 GB, free: 106.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003393/2.667, allocations: 0.8075 MB / 0.9927 GB, free: 106.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005422/2.673, allocations: 0.5042 MB / 0.9932 GB, free: 106.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01126/2.684, allocations: 2.516 MB / 0.9956 GB, free: 105.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00207/2.686, allocations: 1.467 MB / 0.997 GB, free: 105.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.804e-06/2.686, allocations: 0 / 0.997 GB, free: 105.1 MB / 426.7 MB Notification: Performance of Templates: time 0.0685/2.755, allocations: 34.54 MB / 1.031 GB, free: 103.8 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