Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.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.MassFraction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.Xi.1.|senMasFra1.X|senMasFra2.X",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction") translateModel(Buildings.Fluid.Sensors.Examples.MassFraction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.Xi.1.|senMasFra1.X|senMasFra2.X",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction") [: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: 11.2 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.001073/0.001073, allocations: 185.2 kB / 490.8 MB, free: 1.867 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.455/1.455, allocations: 221.4 MB / 0.7863 GB, free: 13.7 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.0009539/0.0009539, allocations: 93.52 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.255e-06/8.285e-06, allocations: 4 kB / 1.072 GB, free: 164.7 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2696, allocations: 143 MB / 1.212 GB, free: 21.89 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.274/4.543, allocations: 1.929 GB / 3.141 GB, free: 376.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002312/4.544, allocations: 87.95 kB / 3.141 GB, free: 376.6 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.555/6.099, allocations: 489.2 MB / 3.619 GB, free: 298.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001792/6.099, allocations: 21.44 kB / 3.619 GB, free: 298.1 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.004281/6.103, allocations: 0.9879 MB / 3.62 GB, free: 297.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 7.872e-05/6.103, allocations: 13.58 kB / 3.62 GB, free: 297.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0023/6.106, allocations: 215.4 kB / 3.62 GB, free: 297.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003625/6.109, allocations: 0.9101 MB / 3.621 GB, free: 297.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.468e-05/6.109, allocations: 24.47 kB / 3.621 GB, free: 297.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002746/6.11, allocations: 37.31 kB / 3.621 GB, free: 297.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001299/6.111, allocations: 450.6 kB / 3.621 GB, free: 296.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/6.112, allocations: 0.5223 MB / 3.622 GB, free: 296.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.023e-05/6.112, allocations: 3.844 kB / 3.622 GB, free: 296.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.999e-05/6.112, allocations: 1.219 kB / 3.622 GB, free: 296.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-05/6.112, allocations: 19.83 kB / 3.622 GB, free: 296.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004545/6.117, allocations: 2.445 MB / 3.624 GB, free: 295 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006339/6.118, allocations: 324.2 kB / 3.624 GB, free: 294.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000343/6.118, allocations: 207.8 kB / 3.625 GB, free: 294.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005993/6.119, allocations: 308 kB / 3.625 GB, free: 294.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.656e-05/6.119, allocations: 48.56 kB / 3.625 GB, free: 294.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=36): time 3.116e-06/6.119, allocations: 0 / 3.625 GB, free: 294.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=36): time 0.001507/6.12, allocations: 445 kB / 3.625 GB, free: 294.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.985e-05/6.12, allocations: 55.19 kB / 3.625 GB, free: 294.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006242/6.121, allocations: 358.1 kB / 3.626 GB, free: 294 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.089e-05/6.121, allocations: 26.8 kB / 3.626 GB, free: 294 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/6.121, allocations: 260.6 kB / 3.626 GB, free: 293.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/6.121, allocations: 120.6 kB / 3.626 GB, free: 293.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.171e-05/6.121, allocations: 0 / 3.626 GB, free: 293.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.000147/6.122, allocations: 370.4 kB / 3.627 GB, free: 293.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002586/6.122, allocations: 134.5 kB / 3.627 GB, free: 293.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003701/6.122, allocations: 264.1 kB / 3.627 GB, free: 293.2 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004815/6.123, allocations: 213.5 kB / 3.627 GB, free: 293.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/6.123, allocations: 1.156 kB / 3.627 GB, free: 293.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001003/6.124, allocations: 483.5 kB / 3.628 GB, free: 292.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002859/6.124, allocations: 0.8763 MB / 3.628 GB, free: 292 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/6.124, allocations: 3.062 kB / 3.628 GB, free: 292 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.048e-05/6.124, allocations: 3.844 kB / 3.628 GB, free: 292 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006781/6.125, allocations: 98.34 kB / 3.629 GB, free: 292 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000403/6.125, allocations: 0.6055 MB / 3.629 GB, free: 291.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008104/6.126, allocations: 64.97 kB / 3.629 GB, free: 291.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.257e-05/6.126, allocations: 22.94 kB / 3.629 GB, free: 291.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/6.126, allocations: 4.406 kB / 3.629 GB, free: 291.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008354/6.127, allocations: 395.9 kB / 3.63 GB, free: 291.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/6.127, allocations: 2.891 kB / 3.63 GB, free: 291.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.368e-06/6.127, allocations: 4.188 kB / 3.63 GB, free: 291.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000405/6.127, allocations: 90.44 kB / 3.63 GB, free: 291.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/6.127, allocations: 9.062 kB / 3.63 GB, free: 291.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007739/6.128, allocations: 61.92 kB / 3.63 GB, free: 291.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-05/6.128, allocations: 19.67 kB / 3.63 GB, free: 291.2 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 (49): * Single equations (assignments): 48 * 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.000167/6.128, allocations: 109.8 kB / 3.63 GB, free: 291.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/6.129, allocations: 53 kB / 3.63 GB, free: 291.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009212/6.129, allocations: 436.2 kB / 3.63 GB, free: 290.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/6.13, allocations: 5.062 kB / 3.63 GB, free: 290.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/6.13, allocations: 3.906 kB / 3.63 GB, free: 290.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007001/6.13, allocations: 0.653 MB / 3.631 GB, free: 290.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002268/6.133, allocations: 1.125 MB / 3.632 GB, free: 289.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.675e-06/6.133, allocations: 5.234 kB / 3.632 GB, free: 289.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005468/6.133, allocations: 97.83 kB / 3.632 GB, free: 289.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.266e-05/6.133, allocations: 4.828 kB / 3.632 GB, free: 289.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.152e-05/6.133, allocations: 8.547 kB / 3.632 GB, free: 289.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002769/6.133, allocations: 0.5983 MB / 3.633 GB, free: 289.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/6.133, allocations: 2.5 kB / 3.633 GB, free: 289.2 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001211/6.135, allocations: 0.7849 MB / 3.634 GB, free: 288.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003857/6.135, allocations: 173.8 kB / 3.634 GB, free: 288.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/6.135, allocations: 8.391 kB / 3.634 GB, free: 288.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005901/6.136, allocations: 34.95 kB / 3.634 GB, free: 288.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.291e-05/6.136, allocations: 17.81 kB / 3.634 GB, free: 288.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.557e-05/6.136, allocations: 19.28 kB / 3.634 GB, free: 288.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0004414/6.136, allocations: 286.9 kB / 3.634 GB, free: 288.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00219/6.139, allocations: 444.7 kB / 3.634 GB, free: 288.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,senMasFra1.X) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * 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.003376/6.142, allocations: 1.556 MB / 3.636 GB, free: 287.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.00152/6.144, allocations: 0.5688 MB / 3.637 GB, free: 287.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.084e-06/6.144, allocations: 1.25 kB / 3.637 GB, free: 287.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.000424/6.144, allocations: 180 kB / 3.637 GB, free: 287.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001712/6.146, allocations: 293.5 kB / 3.637 GB, free: 287.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00271/6.148, allocations: 1.055 MB / 3.638 GB, free: 287.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009034/6.149, allocations: 1.017 MB / 3.639 GB, free: 286.3 MB / 1.151 GB Notification: Performance of SimCode: time 2.41e-07/6.149, allocations: 0 / 3.639 GB, free: 286.3 MB / 1.151 GB Notification: Performance of Templates: time 0.04712/6.196, allocations: 19.91 MB / 3.658 GB, free: 280.3 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_MassFraction.csv","../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches