Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") [: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.002405/0.002405, allocations: 178.2 kB / 8.152 MB, free: 2.125 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.691/1.691, allocations: 205.2 MB / 213.8 MB, free: 13.86 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.001261/0.001261, allocations: 95.27 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.324e-06/7.354e-06, allocations: 0 / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2288, allocations: 47.55 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.3537, allocations: 82.4 MB / 444.2 MB, free: 3.641 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/0.354, allocations: 75.95 kB / 444.3 MB, free: 3.566 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.03516/0.3892, allocations: 7.906 MB / 452.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.866e-05/0.3893, allocations: 4 kB / 452.2 MB, free: 11.7 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001241/0.3906, allocations: 0.602 MB / 452.8 MB, free: 11.05 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.3906, allocations: 8.031 kB / 452.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.3908, allocations: 43.53 kB / 452.9 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007934/0.3916, allocations: 332 kB / 453.2 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.3916, allocations: 8 kB / 453.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.385e-05/0.3917, allocations: 12 kB / 453.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000461/0.3922, allocations: 140.8 kB / 453.3 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005654/0.3928, allocations: 260.6 kB / 453.6 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.3928, allocations: 4 kB / 453.6 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.056e-05/0.3928, allocations: 3.984 kB / 453.6 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.3929, allocations: 4 kB / 453.6 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002177/0.3951, allocations: 0.7452 MB / 454.4 MB, free: 9.375 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007358/0.3958, allocations: 199.3 kB / 454.6 MB, free: 9.172 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00021/0.3961, allocations: 72.86 kB / 454.6 MB, free: 9.098 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.496e-05/0.3961, allocations: 3.984 kB / 454.6 MB, free: 9.094 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002985/0.3964, allocations: 123.9 kB / 454.7 MB, free: 8.961 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.835e-06/0.3965, allocations: 0 / 454.7 MB, free: 8.961 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.000884/0.3973, allocations: 238.8 kB / 455 MB, free: 8.719 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/0.3975, allocations: 316.4 kB / 455.3 MB, free: 8.336 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007234/0.3982, allocations: 354 kB / 455.6 MB, free: 7.988 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.04e-05/0.3983, allocations: 25.7 kB / 455.7 MB, free: 7.957 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.3985, allocations: 190.7 kB / 455.8 MB, free: 7.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.3986, allocations: 82.84 kB / 455.9 MB, free: 7.688 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.586e-05/0.3986, allocations: 0 / 455.9 MB, free: 7.688 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3988, allocations: 318.8 kB / 456.2 MB, free: 7.367 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.399, allocations: 60 kB / 456.3 MB, free: 7.309 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003036/0.3993, allocations: 166.4 kB / 456.5 MB, free: 7.102 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.3995, allocations: 77.08 kB / 456.5 MB, free: 7.027 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.3996, allocations: 3.906 kB / 456.5 MB, free: 7.023 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007934/0.4004, allocations: 244.9 kB / 456.8 MB, free: 6.777 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.4004, allocations: 4 kB / 456.8 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.4004, allocations: 0 / 456.8 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003059/0.4007, allocations: 40.83 kB / 456.8 MB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004487/0.4012, allocations: 56.02 kB / 456.9 MB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001918/0.4031, allocations: 1.381 MB / 458.3 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.4034, allocations: 19.72 kB / 458.3 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/0.4035, allocations: 12 kB / 458.3 MB, free: 5.148 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.000177/0.4037, allocations: 37.64 kB / 458.3 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.4038, allocations: 43.56 kB / 458.4 MB, free: 5.062 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008842/0.4047, allocations: 262 kB / 458.6 MB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.4047, allocations: 240 / 458.6 MB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.4048, allocations: 4 kB / 458.6 MB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006222/0.4054, allocations: 0.5687 MB / 459.2 MB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.407, allocations: 0.6814 MB / 459.9 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.407, allocations: 0 / 459.9 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004528/0.4075, allocations: 43.97 kB / 459.9 MB, free: 3.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.104e-05/0.4075, allocations: 9.219 kB / 459.9 MB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.639e-05/0.4075, allocations: 0 / 459.9 MB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.145e-06/0.4076, allocations: 3.984 kB / 459.9 MB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.116e-05/0.4076, allocations: 18.03 kB / 460 MB, free: 3.312 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008486/0.4084, allocations: 391.1 kB / 460.3 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002811/0.4087, allocations: 148.5 kB / 460.5 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.199e-05/0.4088, allocations: 4 kB / 460.5 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003243/0.4092, allocations: 8.062 kB / 460.5 MB, free: 2.738 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.4093, allocations: 11.97 kB / 460.5 MB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.4093, allocations: 12 kB / 460.5 MB, free: 2.715 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0005042/0.4098, allocations: 272.6 kB / 460.8 MB, free: 2.453 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006195/0.4104, allocations: 103.8 kB / 460.9 MB, free: 2.352 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009341/0.4114, allocations: 328 kB / 461.2 MB, free: 2.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008752/0.4123, allocations: 285.8 kB / 461.5 MB, free: 1.781 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.4123, allocations: 0 / 461.5 MB, free: 1.781 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002258/0.4126, allocations: 87.88 kB / 461.6 MB, free: 1.695 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008311/0.4134, allocations: 82.66 kB / 461.6 MB, free: 1.617 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.4152, allocations: 0.5774 MB / 462.2 MB, free: 1.016 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006148/0.4159, allocations: 0.8412 MB / 463.1 MB, free: 156 kB / 346.7 MB Notification: Performance of SimCode: time 1.242e-06/0.4159, allocations: 0 / 463.1 MB, free: 156 kB / 346.7 MB Notification: Performance of Templates: time 0.01334/0.4293, allocations: 5.737 MB / 468.8 MB, free: 10.43 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches