Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") [: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.002003/0.002002, allocations: 187.3 kB / 8.152 MB, free: 0.8555 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.898/1.898, allocations: 205.2 MB / 213.7 MB, free: 8.59 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001277/0.001276, allocations: 98.3 kB / 261.8 MB, free: 5.176 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 8.085e-06/8.095e-06, allocations: 0 / 314.3 MB, free: 2.453 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09714/0.09717, allocations: 47.57 MB / 361.8 MB, free: 2.773 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.014/1.111, allocations: 409.1 MB / 0.7529 GB, free: 82.36 MB / 418.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/1.111, allocations: 84.61 kB / 0.753 GB, free: 82.32 MB / 418.8 MB Notification: Performance of FrontEnd: time 0.9339/2.045, allocations: 212.1 MB / 0.9601 GB, free: 40.78 MB / 418.8 MB Notification: Performance of Transformations before backend: time 0.0001308/2.045, allocations: 38.97 kB / 0.9601 GB, free: 40.75 MB / 418.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.007898/2.053, allocations: 1.814 MB / 0.9619 GB, free: 38.9 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/2.053, allocations: 8.031 kB / 0.9619 GB, free: 38.89 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001268/2.055, allocations: 166.2 kB / 0.9621 GB, free: 38.73 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00388/2.058, allocations: 0.9828 MB / 0.963 GB, free: 37.72 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002541/2.059, allocations: 206.5 kB / 0.9632 GB, free: 37.48 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005521/2.059, allocations: 59.91 kB / 0.9633 GB, free: 37.43 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004994/2.064, allocations: 1.656 MB / 0.9649 GB, free: 35.77 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005032/2.069, allocations: 1.681 MB / 0.9665 GB, free: 34.02 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.894e-05/2.07, allocations: 0 / 0.9665 GB, free: 34.02 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002502/2.07, allocations: 4 kB / 0.9666 GB, free: 34.01 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001504/2.07, allocations: 110 kB / 0.9667 GB, free: 33.9 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02113/2.091, allocations: 6.602 MB / 0.9731 GB, free: 27.12 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002695/2.094, allocations: 0.9702 MB / 0.9741 GB, free: 26.14 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002315/2.096, allocations: 0.828 MB / 0.9749 GB, free: 25.31 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01004/2.106, allocations: 3.893 MB / 0.9787 GB, free: 21.18 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.889e-05/2.106, allocations: 47.56 kB / 0.9787 GB, free: 21.12 MB / 418.8 MB Notification: Performance of pre-optimization done (n=110): time 4.819e-06/2.106, allocations: 0 / 0.9787 GB, free: 21.12 MB / 418.8 MB Notification: Performance of matching and sorting (n=122): time 0.03456/2.141, allocations: 6.442 MB / 0.985 GB, free: 14.62 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.508e-05/2.141, allocations: 167.2 kB / 0.9852 GB, free: 14.42 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001414/2.143, allocations: 0.6643 MB / 0.9858 GB, free: 13.75 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004814/2.143, allocations: 25.7 kB / 0.9858 GB, free: 13.72 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000312/2.143, allocations: 434 kB / 0.9862 GB, free: 13.29 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005609/2.144, allocations: 404 kB / 0.9866 GB, free: 12.89 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/2.144, allocations: 0 / 0.9866 GB, free: 12.89 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 0.0001187/2.144, allocations: 358.8 kB / 0.987 GB, free: 12.54 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002002/2.146, allocations: 0.7613 MB / 0.9877 GB, free: 11.77 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002218/2.149, allocations: 0.9862 MB / 0.9887 GB, free: 10.7 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01798/2.167, allocations: 2.431 MB / 0.9911 GB, free: 8.273 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.682e-05/2.167, allocations: 3.938 kB / 0.9911 GB, free: 8.27 MB / 418.8 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.02343/2.19, allocations: 3.91 MB / 0.9949 GB, free: 4.34 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000489/2.191, allocations: 2.178 MB / 0.997 GB, free: 1.992 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.317e-05/2.191, allocations: 8 kB / 0.997 GB, free: 1.984 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003954/2.195, allocations: 0.9662 MB / 0.998 GB, free: 1.004 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00212/2.197, allocations: 219.6 kB / 0.9982 GB, free: 0.7891 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2037/2.401, allocations: 6.635 MB / 1.005 GB, free: 100.1 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002835/2.404, allocations: 64.55 kB / 1.005 GB, free: 100.1 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007068/2.404, allocations: 67.38 kB / 1.005 GB, free: 100.1 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/2.404, allocations: 7.688 kB / 1.005 GB, free: 100.1 MB / 418.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02891/2.433, allocations: 3.696 MB / 1.008 GB, free: 100 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.803e-05/2.433, allocations: 10.48 kB / 1.008 GB, free: 100 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004935/2.438, allocations: 0.9085 MB / 1.009 GB, free: 99.98 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002909/2.441, allocations: 228.9 kB / 1.01 GB, free: 99.98 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01784/2.459, allocations: 6.414 MB / 1.016 GB, free: 95.94 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003133/2.462, allocations: 71.27 kB / 1.016 GB, free: 95.94 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004119/2.463, allocations: 60.16 kB / 1.016 GB, free: 95.94 MB / 418.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 123 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 5,(2,100.0%) 5} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005776/2.463, allocations: 68.62 kB / 1.016 GB, free: 95.91 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004846/2.464, allocations: 112.4 kB / 1.016 GB, free: 95.91 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01546/2.479, allocations: 3.257 MB / 1.019 GB, free: 95.79 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.561e-05/2.479, allocations: 18.22 kB / 1.019 GB, free: 95.79 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/2.479, allocations: 3.906 kB / 1.019 GB, free: 95.79 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.757e-05/2.48, allocations: 7.453 kB / 1.019 GB, free: 95.79 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01692/2.496, allocations: 4.674 MB / 1.024 GB, free: 95.44 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-05/2.497, allocations: 0 / 1.024 GB, free: 95.44 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00156/2.498, allocations: 148.4 kB / 1.024 GB, free: 95.44 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004056/2.502, allocations: 1.021 MB / 1.025 GB, free: 95.4 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003333/2.503, allocations: 22.61 kB / 1.025 GB, free: 95.4 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01277/2.515, allocations: 6.66 MB / 1.031 GB, free: 91.28 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/2.515, allocations: 3.906 kB / 1.032 GB, free: 91.28 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01523/2.531, allocations: 4.208 MB / 1.036 GB, free: 91 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/2.532, allocations: 401.1 kB / 1.036 GB, free: 90.85 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003674/2.532, allocations: 3 kB / 1.036 GB, free: 90.85 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002037/2.534, allocations: 76.8 kB / 1.036 GB, free: 90.84 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004564/2.535, allocations: 127.5 kB / 1.036 GB, free: 90.84 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002172/2.535, allocations: 55.23 kB / 1.036 GB, free: 90.84 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.0009483/2.536, allocations: 495.8 kB / 1.037 GB, free: 90.75 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.00495/2.541, allocations: 1.037 MB / 1.038 GB, free: 90.75 MB / 418.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003603/2.545, allocations: 0.7955 MB / 1.039 GB, free: 90.66 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.01298/2.558, allocations: 3.436 MB / 1.042 GB, free: 90.21 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/2.558, allocations: 0 / 1.042 GB, free: 90.21 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004642/2.563, allocations: 1.26 MB / 1.043 GB, free: 90 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004476/2.567, allocations: 458.3 kB / 1.044 GB, free: 90 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/2.579, allocations: 2.628 MB / 1.046 GB, free: 89.54 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001828/2.581, allocations: 1.444 MB / 1.048 GB, free: 88.82 MB / 418.8 MB Notification: Performance of SimCode: time 1.192e-06/2.581, allocations: 0 / 1.048 GB, free: 88.82 MB / 418.8 MB Notification: Performance of Templates: time 0.08086/2.662, allocations: 50.12 MB / 1.096 GB, free: 85.42 MB / 418.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches