Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.Density.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.08/2.08, allocations: 387.2 MB / 394.5 MB, free: 13.71 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.001286/0.001286, allocations: 176.7 kB / 487 MB, free: 5.391 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.555/1.555, allocations: 221.3 MB / 0.7819 GB, free: 1.383 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 100.2 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.376e-06/8.406e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3156, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.87/5.186, allocations: 1.925 GB / 3.13 GB, free: 382.8 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/5.186, allocations: 91.88 kB / 3.13 GB, free: 382.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.587/6.774, allocations: 491.3 MB / 3.61 GB, free: 305.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001241/6.774, allocations: 22.02 kB / 3.61 GB, free: 305.3 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.003381/6.778, allocations: 1.033 MB / 3.611 GB, free: 304.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/6.778, allocations: 9.828 kB / 3.611 GB, free: 304.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002721/6.78, allocations: 289.9 kB / 3.611 GB, free: 304.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002108/6.782, allocations: 0.6383 MB / 3.612 GB, free: 304.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.353e-05/6.782, allocations: 20.66 kB / 3.612 GB, free: 304.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002164/6.783, allocations: 34.34 kB / 3.612 GB, free: 304.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001237/6.784, allocations: 0.4918 MB / 3.612 GB, free: 304.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/6.785, allocations: 0.5538 MB / 3.613 GB, free: 303.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.85e-05/6.785, allocations: 1.062 kB / 3.613 GB, free: 303.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.679e-05/6.785, allocations: 5.594 kB / 3.613 GB, free: 303.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.044e-05/6.785, allocations: 21.12 kB / 3.613 GB, free: 303.8 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004636/6.79, allocations: 2.542 MB / 3.615 GB, free: 302.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005554/6.791, allocations: 268.8 kB / 3.616 GB, free: 302 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004555/6.791, allocations: 235.8 kB / 3.616 GB, free: 301.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007651/6.792, allocations: 480.6 kB / 3.616 GB, free: 301.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/6.792, allocations: 38.91 kB / 3.616 GB, free: 301.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=41): time 2.925e-06/6.792, allocations: 3.938 kB / 3.616 GB, free: 301.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=41): time 0.001829/6.794, allocations: 488.8 kB / 3.617 GB, free: 301.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.105e-05/6.794, allocations: 56.12 kB / 3.617 GB, free: 301.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006314/6.794, allocations: 364.1 kB / 3.617 GB, free: 301 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.781e-05/6.795, allocations: 26.8 kB / 3.617 GB, free: 301 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002157/6.795, allocations: 252.9 kB / 3.618 GB, free: 300.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/6.795, allocations: 137.8 kB / 3.618 GB, free: 300.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.066e-05/6.795, allocations: 3.719 kB / 3.618 GB, free: 300.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001272/6.795, allocations: 368.2 kB / 3.618 GB, free: 300.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002701/6.795, allocations: 140.9 kB / 3.618 GB, free: 300.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003724/6.796, allocations: 267 kB / 3.618 GB, free: 300.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004938/6.796, allocations: 210.8 kB / 3.619 GB, free: 300 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/6.796, allocations: 0 / 3.619 GB, free: 300 MB / 1.151 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001038/6.797, allocations: 491.4 kB / 3.619 GB, free: 299.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000219/6.798, allocations: 0.8694 MB / 3.62 GB, free: 298.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/6.798, allocations: 3.25 kB / 3.62 GB, free: 298.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.603e-05/6.798, allocations: 10.88 kB / 3.62 GB, free: 298.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007211/6.798, allocations: 112.7 kB / 3.62 GB, free: 298.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003625/6.799, allocations: 0.5978 MB / 3.621 GB, free: 298.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008804/6.8, allocations: 77.14 kB / 3.621 GB, free: 298.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.111e-05/6.8, allocations: 19.05 kB / 3.621 GB, free: 298.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/6.8, allocations: 4.625 kB / 3.621 GB, free: 298.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008991/6.801, allocations: 405.3 kB / 3.621 GB, free: 298.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/6.801, allocations: 3.188 kB / 3.621 GB, free: 298.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/6.801, allocations: 4.156 kB / 3.621 GB, free: 298.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004743/6.801, allocations: 102.6 kB / 3.621 GB, free: 298.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/6.801, allocations: 8.594 kB / 3.621 GB, free: 298.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007909/6.802, allocations: 67.23 kB / 3.621 GB, free: 298.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.042e-05/6.802, allocations: 23.88 kB / 3.621 GB, free: 298.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 (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.0001592/6.802, allocations: 116.1 kB / 3.621 GB, free: 298.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/6.802, allocations: 55.23 kB / 3.622 GB, free: 298 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00107/6.803, allocations: 466.7 kB / 3.622 GB, free: 297.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/6.803, allocations: 4.156 kB / 3.622 GB, free: 297.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/6.803, allocations: 0.75 kB / 3.622 GB, free: 297.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007852/6.804, allocations: 0.6833 MB / 3.623 GB, free: 297.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002524/6.807, allocations: 1.206 MB / 3.624 GB, free: 296.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/6.807, allocations: 2.625 kB / 3.624 GB, free: 296.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006225/6.807, allocations: 115.4 kB / 3.624 GB, free: 296.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.194e-05/6.807, allocations: 5.922 kB / 3.624 GB, free: 296.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.154e-05/6.807, allocations: 4.766 kB / 3.624 GB, free: 296.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002338/6.808, allocations: 0.596 MB / 3.625 GB, free: 296.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.168e-06/6.808, allocations: 6.859 kB / 3.625 GB, free: 296.1 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00123/6.809, allocations: 0.8727 MB / 3.625 GB, free: 295.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003496/6.809, allocations: 179.2 kB / 3.626 GB, free: 295.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/6.809, allocations: 12.72 kB / 3.626 GB, free: 295.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006304/6.81, allocations: 45.75 kB / 3.626 GB, free: 295.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.276e-05/6.81, allocations: 32.58 kB / 3.626 GB, free: 295.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.113e-05/6.81, allocations: 18.11 kB / 3.626 GB, free: 295.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0004016/6.811, allocations: 283.2 kB / 3.626 GB, free: 295.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001649/6.812, allocations: 448.5 kB / 3.626 GB, free: 295 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.002845/6.815, allocations: 1.568 MB / 3.628 GB, free: 294.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001277/6.816, allocations: 0.6073 MB / 3.628 GB, free: 294.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/6.816, allocations: 0 / 3.628 GB, free: 294.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003847/6.817, allocations: 208.7 kB / 3.629 GB, free: 294.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00165/6.819, allocations: 308.5 kB / 3.629 GB, free: 294.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002379/6.821, allocations: 1.105 MB / 3.63 GB, free: 293.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007085/6.822, allocations: 1.009 MB / 3.631 GB, free: 293.1 MB / 1.151 GB Notification: Performance of SimCode: time 2.91e-07/6.822, allocations: 4.031 kB / 3.631 GB, free: 293.1 MB / 1.151 GB Notification: Performance of Templates: time 0.04203/6.864, allocations: 20.63 MB / 3.651 GB, free: 287.2 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_Density.csv","../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches