Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 182.2 kB / 8.138 MB, free: 2.219 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.184/1.184, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0009289/0.0009289, allocations: 99.89 kB / 280.8 MB, free: 1.309 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.713e-06/6.743e-06, allocations: 0 / 336.5 MB, free: 9.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2462, allocations: 50.4 MB / 386.9 MB, free: 37.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7815/1.028, allocations: 411.3 MB / 0.7795 GB, free: 42.27 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/1.028, allocations: 87.2 kB / 0.7796 GB, free: 42.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.7045/1.732, allocations: 216.3 MB / 0.9908 GB, free: 9.457 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.698e-05/1.733, allocations: 36.16 kB / 0.9909 GB, free: 9.422 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.005586/1.738, allocations: 1.812 MB / 0.9926 GB, free: 7.562 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/1.738, allocations: 8.031 kB / 0.9926 GB, free: 7.555 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007464/1.739, allocations: 170.1 kB / 0.9928 GB, free: 7.387 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002198/1.741, allocations: 0.9959 MB / 0.9938 GB, free: 6.348 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/1.741, allocations: 202.5 kB / 0.994 GB, free: 6.117 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001835/1.742, allocations: 59.91 kB / 0.994 GB, free: 6.059 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002432/1.744, allocations: 1.656 MB / 0.9956 GB, free: 4.402 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002368/1.746, allocations: 1.678 MB / 0.9973 GB, free: 2.652 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.378e-05/1.746, allocations: 7.922 kB / 0.9973 GB, free: 2.645 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001453/1.747, allocations: 4 kB / 0.9973 GB, free: 2.641 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.687e-05/1.747, allocations: 106 kB / 0.9974 GB, free: 2.535 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2451/1.992, allocations: 6.587 MB / 1.004 GB, free: 105.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001353/1.993, allocations: 0.9682 MB / 1.005 GB, free: 105.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/1.994, allocations: 0.8327 MB / 1.006 GB, free: 105.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00562/2, allocations: 3.896 MB / 1.009 GB, free: 103.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/2, allocations: 54.73 kB / 1.009 GB, free: 103.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 3.897e-06/2, allocations: 0 / 1.009 GB, free: 103.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.02001/2.02, allocations: 6.453 MB / 1.016 GB, free: 103.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.954e-05/2.02, allocations: 168.9 kB / 1.016 GB, free: 103 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/2.021, allocations: 0.6522 MB / 1.017 GB, free: 102.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001768/2.022, allocations: 32.97 kB / 1.017 GB, free: 102.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003491/2.022, allocations: 420.4 kB / 1.017 GB, free: 102.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004378/2.022, allocations: 400.4 kB / 1.017 GB, free: 102.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.402e-05/2.022, allocations: 0 / 1.017 GB, free: 102.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/2.023, allocations: 360.8 kB / 1.018 GB, free: 102.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/2.024, allocations: 0.7476 MB / 1.018 GB, free: 102.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/2.025, allocations: 0.9965 MB / 1.019 GB, free: 101.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005393/2.03, allocations: 1.749 MB / 1.021 GB, free: 101.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.455e-05/2.03, allocations: 3.906 kB / 1.021 GB, free: 101.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.008863/2.039, allocations: 3.28 MB / 1.024 GB, free: 101.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005066/2.04, allocations: 2.185 MB / 1.026 GB, free: 99.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/2.04, allocations: 7.75 kB / 1.026 GB, free: 99.49 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002658/2.042, allocations: 0.9839 MB / 1.027 GB, free: 99.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001446/2.044, allocations: 218.1 kB / 1.028 GB, free: 99.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008494/2.052, allocations: 6.624 MB / 1.034 GB, free: 95.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00194/2.054, allocations: 71.72 kB / 1.034 GB, free: 95.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002144/2.055, allocations: 68.06 kB / 1.034 GB, free: 95.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.358e-06/2.055, allocations: 6.844 kB / 1.034 GB, free: 95.32 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007917/2.063, allocations: 3.03 MB / 1.037 GB, free: 95.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.276e-05/2.063, allocations: 7.188 kB / 1.037 GB, free: 95.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002027/2.065, allocations: 0.936 MB / 1.038 GB, free: 95.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/2.066, allocations: 221.9 kB / 1.038 GB, free: 95.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007064/2.073, allocations: 6.405 MB / 1.045 GB, free: 91.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/2.075, allocations: 72.73 kB / 1.045 GB, free: 91.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001757/2.075, allocations: 60.98 kB / 1.045 GB, free: 91.08 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.0004978/2.076, allocations: 138.4 kB / 1.045 GB, free: 90.97 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002727/2.076, allocations: 112 kB / 1.045 GB, free: 90.92 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008073/2.084, allocations: 3.262 MB / 1.048 GB, free: 90.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.52e-05/2.084, allocations: 21.42 kB / 1.048 GB, free: 90.79 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.326e-05/2.084, allocations: 6.188 kB / 1.048 GB, free: 90.79 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.531e-05/2.084, allocations: 3.75 kB / 1.048 GB, free: 90.79 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/2.094, allocations: 4.672 MB / 1.053 GB, free: 90.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/2.094, allocations: 0 / 1.053 GB, free: 90.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007991/2.095, allocations: 146.8 kB / 1.053 GB, free: 90.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002252/2.097, allocations: 1.02 MB / 1.054 GB, free: 90.38 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/2.097, allocations: 21.48 kB / 1.054 GB, free: 90.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008545/2.106, allocations: 6.66 MB / 1.06 GB, free: 86.25 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.31e-05/2.106, allocations: 7.75 kB / 1.06 GB, free: 86.25 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009391/2.115, allocations: 4.206 MB / 1.064 GB, free: 85.97 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/2.117, allocations: 402.6 kB / 1.065 GB, free: 85.82 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002643/2.117, allocations: 3.875 kB / 1.065 GB, free: 85.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/2.118, allocations: 74.73 kB / 1.065 GB, free: 85.82 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003072/2.118, allocations: 130.2 kB / 1.065 GB, free: 85.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/2.119, allocations: 49.66 kB / 1.065 GB, free: 85.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0006528/2.119, allocations: 0.4898 MB / 1.066 GB, free: 85.72 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003956/2.123, allocations: 1.042 MB / 1.067 GB, free: 85.72 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.002667/2.126, allocations: 0.7955 MB / 1.067 GB, free: 85.62 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006719/2.133, allocations: 3.432 MB / 1.071 GB, free: 85.17 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/2.133, allocations: 6.531 kB / 1.071 GB, free: 85.17 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002619/2.135, allocations: 1.259 MB / 1.072 GB, free: 84.95 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002714/2.138, allocations: 483.2 kB / 1.072 GB, free: 84.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007883/2.146, allocations: 2.577 MB / 1.075 GB, free: 84.51 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001305/2.147, allocations: 1.435 MB / 1.076 GB, free: 83.79 MB / 442.7 MB Notification: Performance of SimCode: time 1.383e-06/2.147, allocations: 0 / 1.076 GB, free: 83.79 MB / 442.7 MB Notification: Performance of Templates: time 0.08131/2.229, allocations: 45.42 MB / 1.121 GB, free: 76.44 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches