Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MassFraction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.222/1.222, allocations: 249.4 MB / 256.7 MB, free: 7.043 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009264/0.0009264, allocations: 184.9 kB / 316 MB, free: 3.555 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.155/1.155, allocations: 205.1 MB / 0.5667 GB, free: 15.65 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008174/0.0008173, allocations: 98.83 kB / 0.671 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.644e-06/7.674e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1645/0.1645, allocations: 106.3 MB / 0.8846 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.746/3.91, allocations: 2.202 GB / 3.086 GB, free: 202.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/3.911, allocations: 91.17 kB / 3.087 GB, free: 202.2 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.063/4.974, allocations: 468 MB / 3.544 GB, free: 72.38 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.889e-05/4.974, allocations: 19.98 kB / 3.544 GB, free: 72.36 MB / 0.8698 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.001476/4.975, allocations: 0.9853 MB / 3.545 GB, free: 71.33 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/4.975, allocations: 12.03 kB / 3.545 GB, free: 71.32 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/4.977, allocations: 214.9 kB / 3.545 GB, free: 71.11 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001609/4.978, allocations: 0.9074 MB / 3.546 GB, free: 70.16 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/4.978, allocations: 16 kB / 3.546 GB, free: 70.14 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.852e-05/4.978, allocations: 32 kB / 3.546 GB, free: 70.11 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000628/4.979, allocations: 454.5 kB / 3.546 GB, free: 69.67 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006791/4.98, allocations: 0.5282 MB / 3.547 GB, free: 69.12 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/4.98, allocations: 4 kB / 3.547 GB, free: 69.12 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.428e-05/4.98, allocations: 0 / 3.547 GB, free: 69.12 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.204e-05/4.98, allocations: 17.31 kB / 3.547 GB, free: 69.11 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002048/4.982, allocations: 2.359 MB / 3.549 GB, free: 66.56 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003806/4.982, allocations: 331.7 kB / 3.549 GB, free: 66.23 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002013/4.982, allocations: 196.8 kB / 3.55 GB, free: 66.04 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004231/4.983, allocations: 307.3 kB / 3.55 GB, free: 65.68 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.792e-05/4.983, allocations: 38.56 kB / 3.55 GB, free: 65.63 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=36): time 1.353e-06/4.983, allocations: 0 / 3.55 GB, free: 65.63 MB / 0.8698 GB Notification: Performance of matching and sorting (n=36): time 0.0009208/4.984, allocations: 441.2 kB / 3.55 GB, free: 65.2 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.357e-05/4.984, allocations: 59.34 kB / 3.55 GB, free: 65.12 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002899/4.984, allocations: 365.2 kB / 3.551 GB, free: 64.76 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/4.984, allocations: 25.7 kB / 3.551 GB, free: 64.73 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.883e-05/4.984, allocations: 252.3 kB / 3.551 GB, free: 64.48 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.934e-05/4.984, allocations: 126.1 kB / 3.551 GB, free: 64.35 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.657e-05/4.984, allocations: 0 / 3.551 GB, free: 64.35 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.036e-05/4.984, allocations: 362.7 kB / 3.551 GB, free: 63.99 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/4.985, allocations: 136.8 kB / 3.552 GB, free: 63.85 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002036/4.985, allocations: 258.4 kB / 3.552 GB, free: 63.54 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002997/4.985, allocations: 221.4 kB / 3.552 GB, free: 63.33 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/4.985, allocations: 0 / 3.552 GB, free: 63.33 MB / 0.8698 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005989/4.986, allocations: 466.8 kB / 3.552 GB, free: 62.87 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.000114/4.986, allocations: 0.8867 MB / 3.553 GB, free: 61.91 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/4.986, allocations: 0 / 3.553 GB, free: 61.91 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/4.986, allocations: 4 kB / 3.553 GB, free: 61.91 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005226/4.986, allocations: 95.83 kB / 3.553 GB, free: 61.82 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002523/4.987, allocations: 0.5976 MB / 3.554 GB, free: 61.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004942/4.987, allocations: 55.78 kB / 3.554 GB, free: 61.14 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.911e-05/4.987, allocations: 23.98 kB / 3.554 GB, free: 61.12 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 5.28e-06/4.987, allocations: 7.906 kB / 3.554 GB, free: 61.11 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005219/4.988, allocations: 391.4 kB / 3.554 GB, free: 60.73 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.335e-06/4.988, allocations: 0 / 3.554 GB, free: 60.73 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.328e-06/4.988, allocations: 4 kB / 3.554 GB, free: 60.72 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/4.988, allocations: 95.83 kB / 3.555 GB, free: 60.63 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.647e-06/4.988, allocations: 8.281 kB / 3.555 GB, free: 60.62 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004423/4.989, allocations: 47.72 kB / 3.555 GB, free: 60.57 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.002e-05/4.989, allocations: 16 kB / 3.555 GB, free: 60.56 MB / 0.8698 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 8.39e-05/4.989, allocations: 124.3 kB / 3.555 GB, free: 60.43 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.371e-05/4.989, allocations: 55.34 kB / 3.555 GB, free: 60.38 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005741/4.989, allocations: 435.2 kB / 3.555 GB, free: 59.95 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/4.989, allocations: 4 kB / 3.555 GB, free: 59.94 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/4.989, allocations: 0 / 3.555 GB, free: 59.94 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000436/4.99, allocations: 0.6478 MB / 3.556 GB, free: 59.21 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001243/4.991, allocations: 1.121 MB / 3.557 GB, free: 58.02 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/4.991, allocations: 0 / 3.557 GB, free: 58.02 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000454/4.992, allocations: 92.11 kB / 3.557 GB, free: 57.93 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/4.992, allocations: 4 kB / 3.557 GB, free: 57.93 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.533e-05/4.992, allocations: 11.98 kB / 3.557 GB, free: 57.91 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001608/4.992, allocations: 0.5976 MB / 3.558 GB, free: 57.29 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/4.992, allocations: 4.031 kB / 3.558 GB, free: 57.29 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006697/4.992, allocations: 0.8059 MB / 3.558 GB, free: 56.4 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001729/4.993, allocations: 180.3 kB / 3.559 GB, free: 56.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.489e-05/4.993, allocations: 7.984 kB / 3.559 GB, free: 56.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004291/4.993, allocations: 39.81 kB / 3.559 GB, free: 56.16 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.18e-05/4.993, allocations: 23.97 kB / 3.559 GB, free: 56.13 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/4.993, allocations: 16 kB / 3.559 GB, free: 56.12 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0002061/4.993, allocations: 286.9 kB / 3.559 GB, free: 55.84 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0009527/4.994, allocations: 438.9 kB / 3.559 GB, free: 55.41 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],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.00137/4.996, allocations: 1.568 MB / 3.561 GB, free: 53.79 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0008478/4.997, allocations: 0.5578 MB / 3.561 GB, free: 53.23 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.686e-06/4.997, allocations: 0 / 3.561 GB, free: 53.23 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002322/4.997, allocations: 184.9 kB / 3.562 GB, free: 53.05 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/4.998, allocations: 299.7 kB / 3.562 GB, free: 52.76 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/5, allocations: 1.046 MB / 3.563 GB, free: 51.66 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004177/5, allocations: 1.006 MB / 3.564 GB, free: 50.62 MB / 0.8698 GB Notification: Performance of SimCode: time 3.71e-07/5, allocations: 0 / 3.564 GB, free: 50.62 MB / 0.8698 GB Notification: Performance of Templates: time 0.0244/5.024, allocations: 19.87 MB / 3.583 GB, free: 30.85 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MassFraction.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MassFraction.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MassFraction.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MassFraction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MassFraction.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MassFraction_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Sensors_Examples_MassFraction.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.MassFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches