Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.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.Thermal.FluidHeatFlow.Examples.OneMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.OneMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass") [: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.001002/0.001002, allocations: 187.4 kB / 8.141 MB, free: 2.188 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.245/1.245, allocations: 221.4 MB / 229.9 MB, free: 3.07 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.000981/0.0009811, allocations: 88.36 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.873e-06/6.893e-06, allocations: 0 / 336.5 MB, free: 9.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2084, allocations: 50.4 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0849/0.2933, allocations: 80.21 MB / 467.1 MB, free: 6.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001613/0.2935, allocations: 79.89 kB / 467.2 MB, free: 6.512 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02489/0.3184, allocations: 9.628 MB / 476.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.506e-05/0.3185, allocations: 12 kB / 476.8 MB, free: 12.84 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001098/0.3196, allocations: 0.7492 MB / 477.6 MB, free: 12.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.3197, allocations: 8.031 kB / 477.6 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.3198, allocations: 67.19 kB / 477.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005434/0.3203, allocations: 393.6 kB / 478 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.639e-05/0.3204, allocations: 50.34 kB / 478.1 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.81e-05/0.3205, allocations: 20 kB / 478.1 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004656/0.3209, allocations: 257.2 kB / 478.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005628/0.3215, allocations: 395.7 kB / 478.7 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.3215, allocations: 0 / 478.7 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.429e-05/0.3216, allocations: 4.219 kB / 478.8 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.3216, allocations: 8 kB / 478.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002054/0.3237, allocations: 1.216 MB / 480 MB, free: 9.473 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000356/0.324, allocations: 225.8 kB / 480.2 MB, free: 9.246 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002591/0.3243, allocations: 150.2 kB / 480.3 MB, free: 9.098 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.263e-05/0.3243, allocations: 7.984 kB / 480.3 MB, free: 9.09 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.3244, allocations: 38.56 kB / 480.4 MB, free: 9.043 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 1.613e-06/0.3244, allocations: 0 / 480.4 MB, free: 9.043 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.0007042/0.3251, allocations: 363 kB / 480.7 MB, free: 8.676 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.3253, allocations: 448.9 kB / 481.2 MB, free: 8.133 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003801/0.3256, allocations: 349.2 kB / 481.5 MB, free: 7.781 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.308e-05/0.3257, allocations: 29.64 kB / 481.6 MB, free: 7.746 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.519e-05/0.3258, allocations: 176.3 kB / 481.7 MB, free: 7.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.971e-05/0.3259, allocations: 122.1 kB / 481.8 MB, free: 7.449 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.774e-05/0.3259, allocations: 0 / 481.8 MB, free: 7.449 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.3261, allocations: 358.8 kB / 482.2 MB, free: 7.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001809/0.3262, allocations: 100 kB / 482.3 MB, free: 6.992 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002749/0.3265, allocations: 235.2 kB / 482.5 MB, free: 6.711 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002167/0.3267, allocations: 128.4 kB / 482.6 MB, free: 6.586 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3268, allocations: 0 / 482.6 MB, free: 6.586 MB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006627/0.3274, allocations: 382.2 kB / 483 MB, free: 6.199 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.3274, allocations: 8 kB / 483 MB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.3275, allocations: 4.031 kB / 483 MB, free: 6.188 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002257/0.3277, allocations: 54.34 kB / 483.1 MB, free: 6.129 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004594/0.3282, allocations: 99.88 kB / 483.2 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002153/0.3303, allocations: 2.605 MB / 485.8 MB, free: 3.195 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003683/0.3307, allocations: 63.64 kB / 485.8 MB, free: 3.133 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.243e-05/0.3307, allocations: 12 kB / 485.9 MB, free: 3.121 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000151/0.3309, allocations: 119.8 kB / 486 MB, free: 3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.296e-05/0.331, allocations: 55.38 kB / 486 MB, free: 2.945 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.691e-05/0.3311, allocations: 48.56 kB / 486.1 MB, free: 2.895 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.3311, allocations: 7.938 kB / 486.1 MB, free: 2.887 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.3311, allocations: 0 / 486.1 MB, free: 2.887 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005916/0.3317, allocations: 0.6491 MB / 486.7 MB, free: 2.133 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.3329, allocations: 0.8969 MB / 487.6 MB, free: 1.184 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3329, allocations: 0 / 487.6 MB, free: 1.184 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004884/0.3334, allocations: 99.88 kB / 487.7 MB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.3335, allocations: 4 kB / 487.7 MB, free: 1.082 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.501e-05/0.3335, allocations: 3.984 kB / 487.7 MB, free: 1.078 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3335, allocations: 3.906 kB / 487.7 MB, free: 1.074 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3335, allocations: 0 / 487.7 MB, free: 1.074 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007703/0.3343, allocations: 0.5385 MB / 488.3 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002062/0.3345, allocations: 172.4 kB / 488.4 MB, free: 340 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.14e-05/0.3346, allocations: 0 / 488.4 MB, free: 340 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003376/0.3349, allocations: 31.95 kB / 488.5 MB, free: 308 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.987e-05/0.335, allocations: 23.95 kB / 488.5 MB, free: 284 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.335, allocations: 8 kB / 488.5 MB, free: 276 kB / 362.7 MB Notification: Performance of sort global known variables: time 0.000319/0.3354, allocations: 275.2 kB / 488.8 MB, free: 8 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005106/0.3359, allocations: 131.8 kB / 488.9 MB, free: 15.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 36 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002519/0.3361, allocations: 123.2 kB / 489 MB, free: 15.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009449/0.3371, allocations: 0.4972 MB / 489.5 MB, free: 15.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.3371, allocations: 4 kB / 489.5 MB, free: 15.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002314/0.3374, allocations: 144 kB / 489.7 MB, free: 15.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006445/0.338, allocations: 106.7 kB / 489.8 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.3397, allocations: 0.6261 MB / 490.4 MB, free: 14.33 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005544/0.3402, allocations: 0.8895 MB / 491.3 MB, free: 13.42 MB / 378.7 MB Notification: Performance of SimCode: time 1.774e-06/0.3402, allocations: 0 / 491.3 MB, free: 13.42 MB / 378.7 MB Notification: Performance of Templates: time 0.01303/0.3533, allocations: 7.168 MB / 498.5 MB, free: 6.398 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/OneMass/OneMass.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches