Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.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.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") [: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 1.716/1.716, allocations: 387.2 MB / 394.5 MB, free: 13.3 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009136/0.0009136, allocations: 181.6 kB / 487 MB, free: 0.707 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.09/1.09, allocations: 221.4 MB / 0.7819 GB, free: 6.762 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007927/0.0007928, allocations: 92.17 kB / 0.9213 GB, free: 43.69 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 7.304e-06/7.344e-06, allocations: 4 kB / 1.066 GB, free: 7.582 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5399/0.5399, allocations: 142.3 MB / 1.205 GB, free: 72.75 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.174/0.7139, allocations: 170.7 MB / 1.372 GB, free: 8.512 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.7141, allocations: 91.94 kB / 1.372 GB, free: 8.422 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.03377/0.7479, allocations: 15.26 MB / 1.387 GB, free: 9.082 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.124e-05/0.7479, allocations: 4 kB / 1.387 GB, free: 9.078 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005335/0.7485, allocations: 462.2 kB / 1.387 GB, free: 8.578 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.7485, allocations: 12.03 kB / 1.387 GB, free: 8.566 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00063/0.7492, allocations: 79.61 kB / 1.387 GB, free: 8.488 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.7494, allocations: 242.2 kB / 1.388 GB, free: 8.215 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.7495, allocations: 4 kB / 1.388 GB, free: 8.211 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.326e-05/0.7495, allocations: 12 kB / 1.388 GB, free: 8.199 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003026/0.7498, allocations: 188.6 kB / 1.388 GB, free: 8.012 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003642/0.7502, allocations: 299.7 kB / 1.388 GB, free: 7.688 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.7502, allocations: 0 / 1.388 GB, free: 7.688 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.7502, allocations: 0 / 1.388 GB, free: 7.688 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.04e-05/0.7503, allocations: 23.98 kB / 1.388 GB, free: 7.664 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001425/0.7517, allocations: 1.572 MB / 1.39 GB, free: 5.957 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002196/0.7519, allocations: 185.1 kB / 1.39 GB, free: 5.758 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.7521, allocations: 89.61 kB / 1.39 GB, free: 5.664 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001403/0.7522, allocations: 91.8 kB / 1.39 GB, free: 5.559 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.7522, allocations: 38.47 kB / 1.39 GB, free: 5.512 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=13): time 1.292e-06/0.7522, allocations: 0 / 1.39 GB, free: 5.512 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14): time 0.0005993/0.7528, allocations: 274.9 kB / 1.39 GB, free: 5.238 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.7529, allocations: 81.33 kB / 1.39 GB, free: 5.141 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.753, allocations: 146 kB / 1.391 GB, free: 4.992 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.753, allocations: 29.64 kB / 1.391 GB, free: 4.957 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.511e-05/0.7531, allocations: 147.9 kB / 1.391 GB, free: 4.805 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.354e-05/0.7532, allocations: 39.36 kB / 1.391 GB, free: 4.766 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.055e-05/0.7532, allocations: 0 / 1.391 GB, free: 4.766 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.952e-05/0.7533, allocations: 326.8 kB / 1.391 GB, free: 4.438 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.7534, allocations: 87.91 kB / 1.391 GB, free: 4.352 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.7535, allocations: 150.5 kB / 1.391 GB, free: 4.172 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.7538, allocations: 127.8 kB / 1.391 GB, free: 4.047 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.7538, allocations: 0 / 1.391 GB, free: 4.047 MB / 0.8855 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004611/0.7543, allocations: 289.2 kB / 1.392 GB, free: 3.758 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003214/0.7546, allocations: 0.9562 MB / 1.393 GB, free: 2.727 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.7546, allocations: 4 kB / 1.393 GB, free: 2.723 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.7546, allocations: 4 kB / 1.393 GB, free: 2.719 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002419/0.7549, allocations: 47.91 kB / 1.393 GB, free: 2.672 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.7549, allocations: 11.66 kB / 1.393 GB, free: 2.664 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/0.755, allocations: 19.84 kB / 1.393 GB, free: 2.645 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.7551, allocations: 11.98 kB / 1.393 GB, free: 2.633 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.324e-06/0.7551, allocations: 6.5 kB / 1.393 GB, free: 2.629 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003676/0.7555, allocations: 216.6 kB / 1.393 GB, free: 2.418 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.7555, allocations: 4.312 kB / 1.393 GB, free: 2.414 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.199e-06/0.7555, allocations: 8 kB / 1.393 GB, free: 2.406 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.7557, allocations: 43.98 kB / 1.393 GB, free: 2.363 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.7557, allocations: 11.92 kB / 1.393 GB, free: 2.352 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.7558, allocations: 12.47 kB / 1.393 GB, free: 2.34 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.7558, allocations: 8 kB / 1.393 GB, free: 2.332 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.572e-05/0.7559, allocations: 108.9 kB / 1.393 GB, free: 2.219 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.135e-05/0.756, allocations: 19.8 kB / 1.393 GB, free: 2.199 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003987/0.7564, allocations: 224.5 kB / 1.393 GB, free: 1.973 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.7564, allocations: 4 kB / 1.393 GB, free: 1.969 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.7564, allocations: 0.8906 kB / 1.393 GB, free: 1.969 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.7564, allocations: 7.969 kB / 1.393 GB, free: 1.961 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.7577, allocations: 1.046 MB / 1.394 GB, free: 0.793 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.7577, allocations: 3.906 kB / 1.394 GB, free: 0.7891 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001466/0.7578, allocations: 35.92 kB / 1.394 GB, free: 0.7539 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.7579, allocations: 8 kB / 1.394 GB, free: 0.7461 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.7579, allocations: 8.609 kB / 1.394 GB, free: 0.7383 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.7579, allocations: 7.938 kB / 1.395 GB, free: 0.7305 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.7579, allocations: 4 kB / 1.395 GB, free: 0.7266 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004498/0.7583, allocations: 0.5255 MB / 1.395 GB, free: 72 kB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.7585, allocations: 116.8 kB / 1.395 GB, free: 15.94 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.517e-05/0.7585, allocations: 8.75 kB / 1.395 GB, free: 15.93 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.7587, allocations: 11.98 kB / 1.395 GB, free: 15.92 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.167e-05/0.7587, allocations: 15.89 kB / 1.395 GB, free: 15.9 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.7587, allocations: 8 kB / 1.395 GB, free: 15.89 MB / 0.9011 GB Notification: Performance of sort global known variables: time 8.19e-05/0.7588, allocations: 124 kB / 1.395 GB, free: 15.77 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004419/0.7593, allocations: 79.98 kB / 1.395 GB, free: 15.7 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001501/0.7594, allocations: 123.1 kB / 1.395 GB, free: 15.57 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0004058/0.7598, allocations: 307.6 kB / 1.396 GB, free: 15.27 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.7598, allocations: 0 / 1.396 GB, free: 15.27 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.76, allocations: 89.14 kB / 1.396 GB, free: 15.18 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.7603, allocations: 33.86 kB / 1.396 GB, free: 15.15 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006647/0.7609, allocations: 390 kB / 1.396 GB, free: 14.71 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003663/0.7613, allocations: 0.7688 MB / 1.397 GB, free: 13.91 MB / 0.9011 GB Notification: Performance of SimCode: time 2.8e-07/0.7613, allocations: 0 / 1.397 GB, free: 13.91 MB / 0.9011 GB Notification: Performance of Templates: time 0.005103/0.7664, allocations: 2.691 MB / 1.4 GB, free: 11.27 MB / 0.9011 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches