Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.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_trunk_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_trunk_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 trunk/package.mo): time 0.001332/0.001332, allocations: 208.6 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008708/0.0008709, allocations: 88.16 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.342e-06/6.503e-06, allocations: 0 / 343.1 MB, free: 8.695 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09688/0.0969, allocations: 51.48 MB / 394.6 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7048/0.8017, allocations: 321.7 MB / 0.6996 GB, free: 35.05 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003374/0.8021, allocations: 75.47 kB / 0.6996 GB, free: 35.02 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.163/1.965, allocations: 273.3 MB / 0.9665 GB, free: 56.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001182/1.965, allocations: 29.34 kB / 0.9666 GB, free: 56.3 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.005795/1.971, allocations: 1.858 MB / 0.9684 GB, free: 55.41 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.349e-05/1.971, allocations: 9.625 kB / 0.9684 GB, free: 55.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006679/1.972, allocations: 178.3 kB / 0.9686 GB, free: 55.32 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002772/1.975, allocations: 1.122 MB / 0.9697 GB, free: 54.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002221/1.975, allocations: 143.1 kB / 0.9698 GB, free: 54.89 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000243/1.975, allocations: 57 kB / 0.9698 GB, free: 54.89 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003896/1.979, allocations: 1.638 MB / 0.9714 GB, free: 54.89 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003295/1.982, allocations: 1.632 MB / 0.973 GB, free: 54.72 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.133e-05/1.983, allocations: 8.188 kB / 0.973 GB, free: 54.71 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001487/1.983, allocations: 6.156 kB / 0.9731 GB, free: 54.71 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001759/1.983, allocations: 117.5 kB / 0.9732 GB, free: 54.71 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01552/1.998, allocations: 6.159 MB / 0.9792 GB, free: 52.78 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002107/2.001, allocations: 0.8839 MB / 0.98 GB, free: 52.77 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001601/2.002, allocations: 0.6943 MB / 0.9807 GB, free: 52.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008548/2.011, allocations: 4.173 MB / 0.9848 GB, free: 50.41 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/2.011, allocations: 51.56 kB / 0.9848 GB, free: 50.37 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 2.585e-06/2.011, allocations: 0 / 0.9848 GB, free: 50.37 MB / 442.7 MB Notification: Performance of matching and sorting (n=112): time 0.01529/2.026, allocations: 4.265 MB / 0.989 GB, free: 49.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.839e-05/2.026, allocations: 148.7 kB / 0.9892 GB, free: 49.64 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001681/2.028, allocations: 0.8154 MB / 0.9899 GB, free: 49.48 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001537/2.028, allocations: 27.08 kB / 0.99 GB, free: 49.45 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003481/2.028, allocations: 471.7 kB / 0.9904 GB, free: 49.17 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004174/2.029, allocations: 372.1 kB / 0.9908 GB, free: 48.93 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.436e-05/2.029, allocations: 0 / 0.9908 GB, free: 48.93 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/2.029, allocations: 367.6 kB / 0.9911 GB, free: 48.62 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/2.03, allocations: 0.6217 MB / 0.9917 GB, free: 48.61 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001482/2.032, allocations: 0.9471 MB / 0.9927 GB, free: 48.26 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006561/2.038, allocations: 1.612 MB / 0.9942 GB, free: 48.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-05/2.039, allocations: 3.25 kB / 0.9942 GB, free: 48.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.008834/2.047, allocations: 2.876 MB / 0.997 GB, free: 47.59 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007388/2.048, allocations: 3.485 MB / 1 GB, free: 43.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.781e-05/2.048, allocations: 13.05 kB / 1 GB, free: 43.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006701/2.055, allocations: 1.114 MB / 1.002 GB, free: 43.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001581/2.056, allocations: 291 kB / 1.002 GB, free: 43.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004268/2.061, allocations: 1.961 MB / 1.004 GB, free: 42.77 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001971/2.063, allocations: 63.33 kB / 1.004 GB, free: 42.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001989/2.063, allocations: 70.28 kB / 1.004 GB, free: 42.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/2.063, allocations: 3.344 kB / 1.004 GB, free: 42.75 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0071/2.07, allocations: 2.567 MB / 1.006 GB, free: 42.15 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/2.07, allocations: 9.375 kB / 1.006 GB, free: 42.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006477/2.077, allocations: 1.045 MB / 1.007 GB, free: 42.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/2.078, allocations: 304.9 kB / 1.008 GB, free: 42.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003173/2.081, allocations: 1.71 MB / 1.009 GB, free: 41.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/2.083, allocations: 60.05 kB / 1.009 GB, free: 41.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/2.083, allocations: 67.94 kB / 1.009 GB, free: 41.12 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.0005467/2.084, allocations: 143.4 kB / 1.01 GB, free: 40.98 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003313/2.084, allocations: 125.9 kB / 1.01 GB, free: 40.92 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005964/2.09, allocations: 2.265 MB / 1.012 GB, free: 40.26 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/2.09, allocations: 12.81 kB / 1.012 GB, free: 40.26 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/2.09, allocations: 0 / 1.012 GB, free: 40.26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/2.09, allocations: 11.58 kB / 1.012 GB, free: 40.26 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007261/2.097, allocations: 3.546 MB / 1.015 GB, free: 38.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/2.097, allocations: 3.094 kB / 1.015 GB, free: 38.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/2.098, allocations: 195.9 kB / 1.016 GB, free: 38.94 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003058/2.101, allocations: 0.8116 MB / 1.016 GB, free: 38.79 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001225/2.101, allocations: 19.23 kB / 1.016 GB, free: 38.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003736/2.105, allocations: 1.962 MB / 1.018 GB, free: 37.81 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.952e-06/2.105, allocations: 2.719 kB / 1.018 GB, free: 37.81 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006061/2.111, allocations: 2.986 MB / 1.021 GB, free: 36.72 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009287/2.112, allocations: 375.2 kB / 1.022 GB, free: 36.48 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000244/2.113, allocations: 0 / 1.022 GB, free: 36.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/2.114, allocations: 68.05 kB / 1.022 GB, free: 36.47 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002504/2.114, allocations: 91.56 kB / 1.022 GB, free: 36.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/2.114, allocations: 51.03 kB / 1.022 GB, free: 36.45 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.000848/2.115, allocations: 0.6015 MB / 1.022 GB, free: 36.17 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003906/2.119, allocations: 1.184 MB / 1.024 GB, free: 35.91 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.00241/2.121, allocations: 1.06 MB / 1.025 GB, free: 35.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006361/2.128, allocations: 2.548 MB / 1.027 GB, free: 34.31 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.487e-05/2.128, allocations: 0 / 1.027 GB, free: 34.31 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002077/2.13, allocations: 0.8061 MB / 1.028 GB, free: 33.58 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003418/2.133, allocations: 0.52 MB / 1.028 GB, free: 33.23 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006053/2.139, allocations: 2.46 MB / 1.031 GB, free: 31.26 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/2.14, allocations: 1.474 MB / 1.032 GB, free: 30.01 MB / 442.7 MB Notification: Performance of SimCode: time 9.21e-07/2.141, allocations: 4 kB / 1.032 GB, free: 30 MB / 442.7 MB Notification: Performance of Templates: time 0.06964/2.21, allocations: 44.44 MB / 1.076 GB, free: 6.102 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches