Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Sensors.Examples.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.Density") translateModel(Buildings.Fluid.Sensors.Examples.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.Density") [: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/Buildings 10.0.0-master/package.mo): time 2.051/2.051, allocations: 390.4 MB / 397.7 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 177.3 kB / 490.8 MB, free: 1.656 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 221.3 MB / 0.7863 GB, free: 13.4 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 99.48 kB / 0.9264 GB, free: 13.92 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.376e-06/8.657e-06, allocations: 0 / 1.072 GB, free: 182.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3171, allocations: 143 MB / 1.212 GB, free: 39.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.423/4.74, allocations: 1.926 GB / 3.137 GB, free: 417.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/4.74, allocations: 91.88 kB / 3.137 GB, free: 417 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.477/6.217, allocations: 491.3 MB / 3.617 GB, free: 298.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 5.518e-05/6.217, allocations: 17.34 kB / 3.617 GB, free: 298.6 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001815/6.219, allocations: 1.029 MB / 3.618 GB, free: 298 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/6.219, allocations: 11.42 kB / 3.618 GB, free: 298 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001938/6.221, allocations: 295.3 kB / 3.618 GB, free: 298 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/6.222, allocations: 0.6353 MB / 3.619 GB, free: 297.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/6.222, allocations: 16.81 kB / 3.619 GB, free: 297.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.413e-05/6.222, allocations: 38.22 kB / 3.619 GB, free: 297.8 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007604/6.223, allocations: 0.4904 MB / 3.62 GB, free: 297.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007989/6.224, allocations: 0.5558 MB / 3.62 GB, free: 297.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/6.224, allocations: 0 / 3.62 GB, free: 297.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.067e-05/6.224, allocations: 2.906 kB / 3.62 GB, free: 297.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.966e-05/6.224, allocations: 27.55 kB / 3.62 GB, free: 297.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002667/6.227, allocations: 2.539 MB / 3.623 GB, free: 296.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003302/6.227, allocations: 261.2 kB / 3.623 GB, free: 296.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002986/6.227, allocations: 238.1 kB / 3.623 GB, free: 296.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005965/6.228, allocations: 481.9 kB / 3.624 GB, free: 295.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.073e-05/6.228, allocations: 37.88 kB / 3.624 GB, free: 295.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=41): time 2.024e-06/6.228, allocations: 0 / 3.624 GB, free: 295.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=41): time 0.001277/6.229, allocations: 480.3 kB / 3.624 GB, free: 295.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.239e-05/6.229, allocations: 60.72 kB / 3.624 GB, free: 295.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003571/6.23, allocations: 360.2 kB / 3.624 GB, free: 295.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/6.23, allocations: 25.7 kB / 3.624 GB, free: 295.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000127/6.23, allocations: 255.4 kB / 3.625 GB, free: 295.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/6.23, allocations: 141.3 kB / 3.625 GB, free: 295.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.894e-05/6.23, allocations: 2.969 kB / 3.625 GB, free: 295.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001013/6.23, allocations: 371.1 kB / 3.625 GB, free: 295 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/6.23, allocations: 133.3 kB / 3.625 GB, free: 295 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002535/6.231, allocations: 259.9 kB / 3.626 GB, free: 294.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003404/6.231, allocations: 220 kB / 3.626 GB, free: 294.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/6.231, allocations: 0 / 3.626 GB, free: 294.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006866/6.232, allocations: 488.2 kB / 3.626 GB, free: 294.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001768/6.232, allocations: 0.8715 MB / 3.627 GB, free: 294 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/6.232, allocations: 3.906 kB / 3.627 GB, free: 294 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/6.232, allocations: 7.594 kB / 3.627 GB, free: 294 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006447/6.233, allocations: 111.8 kB / 3.627 GB, free: 294 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003183/6.233, allocations: 0.5998 MB / 3.628 GB, free: 293.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000653/6.234, allocations: 78.75 kB / 3.628 GB, free: 293.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.956e-05/6.234, allocations: 22.14 kB / 3.628 GB, free: 293.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 5.461e-06/6.234, allocations: 6.312 kB / 3.628 GB, free: 293.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000602/6.234, allocations: 404.2 kB / 3.628 GB, free: 293.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.816e-06/6.234, allocations: 0 / 3.628 GB, free: 293.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.123e-06/6.234, allocations: 7.562 kB / 3.628 GB, free: 293.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/6.235, allocations: 106 kB / 3.628 GB, free: 293.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.918e-06/6.235, allocations: 3.188 kB / 3.628 GB, free: 293.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005351/6.235, allocations: 69.94 kB / 3.628 GB, free: 293.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/6.235, allocations: 22.72 kB / 3.628 GB, free: 293.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000131/6.235, allocations: 127.6 kB / 3.629 GB, free: 293.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.148e-05/6.236, allocations: 52.94 kB / 3.629 GB, free: 293.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007438/6.236, allocations: 459.2 kB / 3.629 GB, free: 293.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/6.236, allocations: 3.906 kB / 3.629 GB, free: 293.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/6.236, allocations: 0 / 3.629 GB, free: 293.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005658/6.237, allocations: 0.6906 MB / 3.63 GB, free: 292.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001684/6.239, allocations: 1.204 MB / 3.631 GB, free: 292.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/6.239, allocations: 3.531 kB / 3.631 GB, free: 292.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005463/6.239, allocations: 113.6 kB / 3.631 GB, free: 292.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.822e-06/6.239, allocations: 8.125 kB / 3.631 GB, free: 292.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.494e-05/6.239, allocations: 6.688 kB / 3.631 GB, free: 292.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002352/6.239, allocations: 0.5934 MB / 3.632 GB, free: 291.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/6.239, allocations: 4.375 kB / 3.632 GB, free: 291.8 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009045/6.24, allocations: 0.876 MB / 3.633 GB, free: 291.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002055/6.241, allocations: 178.7 kB / 3.633 GB, free: 291.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.561e-05/6.241, allocations: 5.406 kB / 3.633 GB, free: 291.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004952/6.241, allocations: 49.2 kB / 3.633 GB, free: 291.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.726e-05/6.241, allocations: 32 kB / 3.633 GB, free: 291.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.104e-05/6.241, allocations: 19.19 kB / 3.633 GB, free: 291.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0002519/6.242, allocations: 284.7 kB / 3.633 GB, free: 291.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001222/6.243, allocations: 451.2 kB / 3.634 GB, free: 291.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,senDenFlo.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001759/6.245, allocations: 1.565 MB / 3.635 GB, free: 290.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001135/6.246, allocations: 0.6056 MB / 3.636 GB, free: 290.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/6.246, allocations: 3.875 kB / 3.636 GB, free: 290.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003/6.246, allocations: 201.4 kB / 3.636 GB, free: 290.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/6.248, allocations: 313.5 kB / 3.636 GB, free: 290.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001954/6.249, allocations: 1.1 MB / 3.637 GB, free: 290.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005252/6.25, allocations: 1.029 MB / 3.638 GB, free: 289.7 MB / 1.151 GB Notification: Performance of SimCode: time 3.51e-07/6.25, allocations: 0 / 3.638 GB, free: 289.7 MB / 1.151 GB Notification: Performance of Templates: time 0.03637/6.286, allocations: 20.62 MB / 3.658 GB, free: 288.9 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_Density.csv","../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches