Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.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.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.233/1.233, allocations: 249.4 MB / 256.7 MB, free: 7.102 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.001205/0.001205, allocations: 188.5 kB / 316 MB, free: 3.508 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.231/1.231, allocations: 205.2 MB / 0.5667 GB, free: 15.58 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.000861/0.000861, allocations: 84.94 kB / 0.671 GB, free: 4.715 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.454e-06/7.484e-06, allocations: 4 kB / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1594, allocations: 106.3 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.232/3.391, allocations: 2.198 GB / 3.083 GB, free: 205.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/3.391, allocations: 91.94 kB / 3.083 GB, free: 205.7 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.074/4.466, allocations: 470.1 MB / 3.542 GB, free: 73.64 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.552e-05/4.466, allocations: 27.92 kB / 3.542 GB, free: 73.61 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.001546/4.467, allocations: 1.028 MB / 3.543 GB, free: 72.54 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/4.467, allocations: 12.03 kB / 3.543 GB, free: 72.53 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001841/4.469, allocations: 282.7 kB / 3.544 GB, free: 72.25 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/4.47, allocations: 0.6381 MB / 3.544 GB, free: 71.57 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/4.47, allocations: 16 kB / 3.544 GB, free: 71.55 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.673e-05/4.47, allocations: 35.91 kB / 3.544 GB, free: 71.52 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007024/4.471, allocations: 0.4906 MB / 3.545 GB, free: 71.03 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007358/4.472, allocations: 0.5635 MB / 3.545 GB, free: 70.45 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/4.472, allocations: 0 / 3.545 GB, free: 70.45 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.969e-05/4.472, allocations: 0 / 3.545 GB, free: 70.45 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/4.472, allocations: 25.25 kB / 3.545 GB, free: 70.43 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/4.474, allocations: 2.469 MB / 3.548 GB, free: 67.78 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004854/4.475, allocations: 383.5 kB / 3.548 GB, free: 67.39 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002824/4.475, allocations: 242.9 kB / 3.548 GB, free: 67.16 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005974/4.476, allocations: 473.5 kB / 3.549 GB, free: 66.6 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/4.476, allocations: 38.56 kB / 3.549 GB, free: 66.55 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=41): time 1.613e-06/4.476, allocations: 3.938 kB / 3.549 GB, free: 66.55 MB / 0.8698 GB Notification: Performance of matching and sorting (n=41): time 0.001261/4.477, allocations: 474.8 kB / 3.549 GB, free: 66.08 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/4.477, allocations: 59.41 kB / 3.549 GB, free: 66.01 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003861/4.478, allocations: 361.3 kB / 3.55 GB, free: 65.65 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.566e-05/4.478, allocations: 25.7 kB / 3.55 GB, free: 65.62 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/4.478, allocations: 256.3 kB / 3.55 GB, free: 65.36 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 8.863e-05/4.478, allocations: 141.9 kB / 3.55 GB, free: 65.22 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.919e-05/4.478, allocations: 0 / 3.55 GB, free: 65.22 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.894e-05/4.478, allocations: 362.7 kB / 3.55 GB, free: 64.86 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001942/4.478, allocations: 136.8 kB / 3.55 GB, free: 64.72 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002599/4.479, allocations: 264.2 kB / 3.551 GB, free: 64.42 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003385/4.479, allocations: 207.8 kB / 3.551 GB, free: 64.21 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/4.479, allocations: 0 / 3.551 GB, free: 64.21 MB / 0.8698 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006795/4.48, allocations: 492.6 kB / 3.551 GB, free: 63.73 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002942/4.48, allocations: 0.8734 MB / 3.552 GB, free: 62.79 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/4.48, allocations: 4 kB / 3.552 GB, free: 62.78 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/4.48, allocations: 4 kB / 3.552 GB, free: 62.78 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000638/4.481, allocations: 115.8 kB / 3.552 GB, free: 62.66 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003287/4.481, allocations: 0.6055 MB / 3.553 GB, free: 62.04 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005894/4.482, allocations: 71.58 kB / 3.553 GB, free: 61.96 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.272e-05/4.482, allocations: 20 kB / 3.553 GB, free: 61.95 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.134e-06/4.482, allocations: 4 kB / 3.553 GB, free: 61.94 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006187/4.482, allocations: 395.7 kB / 3.553 GB, free: 61.55 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/4.482, allocations: 0 / 3.553 GB, free: 61.55 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.811e-06/4.482, allocations: 8 kB / 3.553 GB, free: 61.55 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003988/4.483, allocations: 107.8 kB / 3.554 GB, free: 61.44 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/4.483, allocations: 4 kB / 3.554 GB, free: 61.44 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004848/4.483, allocations: 59.86 kB / 3.554 GB, free: 61.38 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.331e-05/4.483, allocations: 23.98 kB / 3.554 GB, free: 61.36 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 (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 9.851e-05/4.483, allocations: 124.7 kB / 3.554 GB, free: 61.23 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.67e-05/4.483, allocations: 55.34 kB / 3.554 GB, free: 61.17 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006623/4.484, allocations: 442.1 kB / 3.554 GB, free: 60.73 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/4.484, allocations: 4 kB / 3.554 GB, free: 60.73 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/4.484, allocations: 0 / 3.554 GB, free: 60.73 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005304/4.485, allocations: 0.6873 MB / 3.555 GB, free: 59.95 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001496/4.486, allocations: 1.199 MB / 3.556 GB, free: 58.68 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/4.486, allocations: 4 kB / 3.556 GB, free: 58.68 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005258/4.487, allocations: 107.9 kB / 3.556 GB, free: 58.57 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/4.487, allocations: 8 kB / 3.556 GB, free: 58.57 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.017e-05/4.487, allocations: 7.984 kB / 3.556 GB, free: 58.56 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001742/4.487, allocations: 0.6016 MB / 3.557 GB, free: 57.93 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/4.487, allocations: 8 kB / 3.557 GB, free: 57.93 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008078/4.488, allocations: 0.8898 MB / 3.558 GB, free: 56.93 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001885/4.488, allocations: 188.3 kB / 3.558 GB, free: 56.72 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.091e-05/4.488, allocations: 4 kB / 3.558 GB, free: 56.72 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00049/4.488, allocations: 47.86 kB / 3.558 GB, free: 56.67 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.652e-05/4.489, allocations: 31.95 kB / 3.558 GB, free: 56.64 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.067e-05/4.489, allocations: 19.94 kB / 3.558 GB, free: 56.62 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0002198/4.489, allocations: 286.9 kB / 3.558 GB, free: 56.34 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001064/4.49, allocations: 442.9 kB / 3.559 GB, free: 55.91 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],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.001541/4.491, allocations: 1.58 MB / 3.56 GB, free: 54.27 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0009324/4.492, allocations: 0.5967 MB / 3.561 GB, free: 53.67 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/4.492, allocations: 384 / 3.561 GB, free: 53.67 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002876/4.493, allocations: 203.8 kB / 3.561 GB, free: 53.47 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001367/4.494, allocations: 319 kB / 3.561 GB, free: 53.17 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/4.496, allocations: 1.091 MB / 3.562 GB, free: 52.02 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000435/4.496, allocations: 1.015 MB / 3.563 GB, free: 50.98 MB / 0.8698 GB Notification: Performance of SimCode: time 2.6e-07/4.496, allocations: 0 / 3.563 GB, free: 50.98 MB / 0.8698 GB Notification: Performance of Templates: time 0.02529/4.521, allocations: 20.59 MB / 3.583 GB, free: 30.49 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Sensors_Examples_Density.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches