Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001681/0.001681, allocations: 194.9 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009354/0.0009354, allocations: 92.31 kB / 286.3 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.067e-05/1.07e-05, allocations: 0 / 343.1 MB, free: 8.766 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1136, allocations: 51.49 MB / 394.6 MB, free: 5.223 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.011/1.125, allocations: 412.1 MB / 0.7878 GB, free: 125.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/1.125, allocations: 84.27 kB / 0.7879 GB, free: 125.1 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.7583/1.884, allocations: 215.8 MB / 0.9986 GB, free: 66.21 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001287/1.884, allocations: 34.97 kB / 0.9987 GB, free: 66.2 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.007002/1.891, allocations: 1.82 MB / 1 GB, free: 64.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/1.891, allocations: 9.688 kB / 1 GB, free: 64.93 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006844/1.892, allocations: 159.1 kB / 1.001 GB, free: 64.86 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002361/1.894, allocations: 0.9912 MB / 1.002 GB, free: 64.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001956/1.894, allocations: 204.7 kB / 1.002 GB, free: 63.99 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001897/1.894, allocations: 61.53 kB / 1.002 GB, free: 63.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002732/1.897, allocations: 1.65 MB / 1.003 GB, free: 63.25 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002596/1.9, allocations: 1.681 MB / 1.005 GB, free: 62.28 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.926e-05/1.9, allocations: 0 / 1.005 GB, free: 62.28 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001537/1.9, allocations: 7.344 kB / 1.005 GB, free: 62.27 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001169/1.9, allocations: 112.4 kB / 1.005 GB, free: 62.23 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01368/1.914, allocations: 6.618 MB / 1.012 GB, free: 57.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/1.915, allocations: 0.9697 MB / 1.013 GB, free: 57.05 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001099/1.916, allocations: 0.8288 MB / 1.013 GB, free: 56.65 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00595/1.922, allocations: 3.907 MB / 1.017 GB, free: 53.59 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.428e-05/1.922, allocations: 46.81 kB / 1.017 GB, free: 53.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 3.135e-06/1.922, allocations: 0 / 1.017 GB, free: 53.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.01989/1.942, allocations: 6.446 MB / 1.024 GB, free: 50.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.217e-05/1.942, allocations: 168.2 kB / 1.024 GB, free: 50.11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001004/1.944, allocations: 0.6613 MB / 1.024 GB, free: 49.74 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001345/1.944, allocations: 25.7 kB / 1.024 GB, free: 49.71 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000318/1.944, allocations: 428.7 kB / 1.025 GB, free: 49.34 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003833/1.944, allocations: 403.2 kB / 1.025 GB, free: 49 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.265e-05/1.944, allocations: 0 / 1.025 GB, free: 49 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.862e-05/1.945, allocations: 357.1 kB / 1.026 GB, free: 48.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/1.946, allocations: 0.7449 MB / 1.026 GB, free: 48.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/1.947, allocations: 0.9902 MB / 1.027 GB, free: 47.59 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005907/1.953, allocations: 1.864 MB / 1.029 GB, free: 45.73 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/1.953, allocations: 4 kB / 1.029 GB, free: 45.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.008729/1.962, allocations: 3.393 MB / 1.032 GB, free: 42.31 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000545/1.962, allocations: 2.174 MB / 1.034 GB, free: 39.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/1.962, allocations: 4 kB / 1.034 GB, free: 39.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002111/1.964, allocations: 0.9838 MB / 1.035 GB, free: 38.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/1.966, allocations: 215.7 kB / 1.036 GB, free: 38.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007433/1.973, allocations: 6.634 MB / 1.042 GB, free: 31.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/1.975, allocations: 75.84 kB / 1.042 GB, free: 31.76 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001599/1.975, allocations: 59.97 kB / 1.042 GB, free: 31.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.093e-06/1.975, allocations: 0 / 1.042 GB, free: 31.7 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008061/1.983, allocations: 3.138 MB / 1.045 GB, free: 28.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/1.983, allocations: 4 kB / 1.045 GB, free: 28.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001931/1.985, allocations: 0.9359 MB / 1.046 GB, free: 27.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009878/1.986, allocations: 219.7 kB / 1.046 GB, free: 27.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006799/1.993, allocations: 6.412 MB / 1.053 GB, free: 20.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/1.994, allocations: 71.86 kB / 1.053 GB, free: 20.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001604/1.995, allocations: 59.97 kB / 1.053 GB, free: 20.54 MB / 442.7 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 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004414/1.995, allocations: 140.7 kB / 1.053 GB, free: 20.39 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002552/1.995, allocations: 118.6 kB / 1.053 GB, free: 20.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007571/2.003, allocations: 3.257 MB / 1.056 GB, free: 17.03 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.638e-05/2.003, allocations: 19.94 kB / 1.056 GB, free: 17.01 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/2.003, allocations: 0 / 1.056 GB, free: 17.01 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/2.003, allocations: 7.969 kB / 1.056 GB, free: 17 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009249/2.012, allocations: 4.667 MB / 1.061 GB, free: 12.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/2.012, allocations: 4 kB / 1.061 GB, free: 12.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007986/2.013, allocations: 147.8 kB / 1.061 GB, free: 12.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002223/2.015, allocations: 1.027 MB / 1.062 GB, free: 11.12 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001257/2.015, allocations: 23.97 kB / 1.062 GB, free: 11.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007273/2.023, allocations: 6.662 MB / 1.069 GB, free: 4.148 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/2.023, allocations: 64 / 1.069 GB, free: 4.148 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2711/2.294, allocations: 4.213 MB / 1.073 GB, free: 107.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002158/2.296, allocations: 401 kB / 1.073 GB, free: 107.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004439/2.297, allocations: 0 / 1.073 GB, free: 107.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00151/2.298, allocations: 73.39 kB / 1.073 GB, free: 107.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003874/2.298, allocations: 125.8 kB / 1.073 GB, free: 107.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001806/2.299, allocations: 51.56 kB / 1.073 GB, free: 107.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0009479/2.3, allocations: 0.4891 MB / 1.074 GB, free: 107.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005546/2.305, allocations: 1.054 MB / 1.075 GB, free: 107.7 MB / 442.7 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.003229/2.308, allocations: 0.7964 MB / 1.076 GB, free: 107.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007111/2.316, allocations: 3.443 MB / 1.079 GB, free: 107.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/2.316, allocations: 7 kB / 1.079 GB, free: 107.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002513/2.318, allocations: 1.257 MB / 1.08 GB, free: 107 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002622/2.321, allocations: 471.5 kB / 1.081 GB, free: 107 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00747/2.328, allocations: 2.584 MB / 1.083 GB, free: 106.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/2.33, allocations: 1.433 MB / 1.085 GB, free: 105.8 MB / 442.7 MB Notification: Performance of SimCode: time 2.094e-06/2.33, allocations: 0 / 1.085 GB, free: 105.8 MB / 442.7 MB Notification: Performance of Templates: time 0.07007/2.4, allocations: 45.42 MB / 1.129 GB, free: 104.2 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches