Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.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.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_latest_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_latest_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 10.0.0-master/package.mo): time 1.706/1.706, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0009021/0.0009021, allocations: 177.3 kB / 490.8 MB, free: 1.93 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.055/1.055, allocations: 221.3 MB / 0.7863 GB, free: 13.67 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.0007982/0.000798, allocations: 90.55 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.19e-06/5.21e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1634/0.1634, allocations: 143 MB / 1.212 GB, free: 40.11 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4552/0.6186, allocations: 171.5 MB / 1.379 GB, free: 17.21 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002095/0.6189, allocations: 94.03 kB / 1.379 GB, free: 17.21 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.02998/0.6489, allocations: 15.27 MB / 1.394 GB, free: 12 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.143e-05/0.6489, allocations: 7.469 kB / 1.394 GB, free: 12 MB / 0.823 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.0004839/0.6494, allocations: 467.7 kB / 1.395 GB, free: 27.56 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.914e-05/0.6494, allocations: 9.531 kB / 1.395 GB, free: 27.56 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006128/0.6501, allocations: 80.3 kB / 1.395 GB, free: 27.52 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002205/0.6503, allocations: 235.8 kB / 1.395 GB, free: 27.29 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.6503, allocations: 14.59 kB / 1.395 GB, free: 27.29 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.559e-05/0.6503, allocations: 8.406 kB / 1.395 GB, free: 27.29 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002935/0.6506, allocations: 188.8 kB / 1.395 GB, free: 27.26 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003464/0.651, allocations: 287.8 kB / 1.395 GB, free: 27.12 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.651, allocations: 4.625 kB / 1.395 GB, free: 27.11 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.225e-05/0.651, allocations: 5.781 kB / 1.395 GB, free: 27.11 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.007e-05/0.6511, allocations: 19.98 kB / 1.395 GB, free: 27.11 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.6524, allocations: 1.578 MB / 1.397 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002058/0.6526, allocations: 177 kB / 1.397 GB, free: 25.64 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.6527, allocations: 84.5 kB / 1.397 GB, free: 25.62 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001169/0.6528, allocations: 90.66 kB / 1.397 GB, free: 25.52 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.451e-05/0.6528, allocations: 36.19 kB / 1.397 GB, free: 25.47 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.6528, allocations: 0.8125 kB / 1.397 GB, free: 25.47 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0005846/0.6534, allocations: 276.3 kB / 1.398 GB, free: 25.36 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.755e-05/0.6535, allocations: 82.36 kB / 1.398 GB, free: 25.26 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.6536, allocations: 148 kB / 1.398 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.229e-05/0.6536, allocations: 25.7 kB / 1.398 GB, free: 25.12 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.096e-05/0.6537, allocations: 148.8 kB / 1.398 GB, free: 24.99 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.603e-05/0.6537, allocations: 49.03 kB / 1.398 GB, free: 24.95 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.899e-06/0.6537, allocations: 0 / 1.398 GB, free: 24.95 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.906e-05/0.6538, allocations: 321.4 kB / 1.398 GB, free: 24.64 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001077/0.6539, allocations: 80.28 kB / 1.398 GB, free: 24.63 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.654, allocations: 151.2 kB / 1.398 GB, free: 24.53 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002258/0.6543, allocations: 128.3 kB / 1.399 GB, free: 24.5 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.6543, allocations: 3.938 kB / 1.399 GB, free: 24.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004393/0.6547, allocations: 287.9 kB / 1.399 GB, free: 24.41 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003465/0.6551, allocations: 0.9621 MB / 1.4 GB, free: 23.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.6551, allocations: 3.094 kB / 1.4 GB, free: 23.39 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.6551, allocations: 3.625 kB / 1.4 GB, free: 23.39 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002345/0.6553, allocations: 53.59 kB / 1.4 GB, free: 23.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.6554, allocations: 7.625 kB / 1.4 GB, free: 23.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.6555, allocations: 18.67 kB / 1.4 GB, free: 23.37 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.6555, allocations: 7.781 kB / 1.4 GB, free: 23.37 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.663e-06/0.6556, allocations: 4.156 kB / 1.4 GB, free: 23.37 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003503/0.6559, allocations: 220.4 kB / 1.4 GB, free: 23.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.6559, allocations: 2.531 kB / 1.4 GB, free: 23.32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.48e-06/0.6559, allocations: 3.75 kB / 1.4 GB, free: 23.32 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000183/0.6561, allocations: 49 kB / 1.4 GB, free: 23.31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.6561, allocations: 7.594 kB / 1.4 GB, free: 23.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.6562, allocations: 13.92 kB / 1.4 GB, free: 23.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.6563, allocations: 13.78 kB / 1.4 GB, free: 23.29 MB / 0.8386 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 7.316e-05/0.6563, allocations: 109 kB / 1.4 GB, free: 23.18 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.417e-05/0.6564, allocations: 17.97 kB / 1.4 GB, free: 23.17 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003662/0.6568, allocations: 226.7 kB / 1.401 GB, free: 23.08 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.6568, allocations: 6.344 kB / 1.401 GB, free: 23.08 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.6568, allocations: 1.125 kB / 1.401 GB, free: 23.08 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.6568, allocations: 0 / 1.401 GB, free: 23.08 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.6579, allocations: 1.049 MB / 1.402 GB, free: 22.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.6579, allocations: 3.562 kB / 1.402 GB, free: 22.3 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.658, allocations: 35.61 kB / 1.402 GB, free: 22.29 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.6581, allocations: 9 kB / 1.402 GB, free: 22.28 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.6581, allocations: 4.406 kB / 1.402 GB, free: 22.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.6581, allocations: 4.094 kB / 1.402 GB, free: 22.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.6581, allocations: 10.94 kB / 1.402 GB, free: 22.27 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003604/0.6585, allocations: 0.5258 MB / 1.402 GB, free: 21.77 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.045e-05/0.6585, allocations: 117 kB / 1.402 GB, free: 21.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.362e-05/0.6586, allocations: 4.719 kB / 1.402 GB, free: 21.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.6587, allocations: 10.3 kB / 1.402 GB, free: 21.66 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.58e-05/0.6588, allocations: 19.34 kB / 1.402 GB, free: 21.65 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.6588, allocations: 6.688 kB / 1.402 GB, free: 21.65 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8.585e-05/0.6589, allocations: 129.7 kB / 1.402 GB, free: 21.56 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000435/0.6593, allocations: 75.97 kB / 1.403 GB, free: 21.55 MB / 0.8386 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.0001162/0.6594, allocations: 124.1 kB / 1.403 GB, free: 21.45 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004032/0.6599, allocations: 313.6 kB / 1.403 GB, free: 21.4 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.6599, allocations: 1.25 kB / 1.403 GB, free: 21.4 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.671e-05/0.66, allocations: 87.77 kB / 1.403 GB, free: 21.38 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002405/0.6602, allocations: 32.97 kB / 1.403 GB, free: 21.37 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006237/0.6608, allocations: 384 kB / 1.403 GB, free: 21.12 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003955/0.6612, allocations: 0.777 MB / 1.404 GB, free: 20.38 MB / 0.8386 GB Notification: Performance of SimCode: time 2.9e-07/0.6613, allocations: 0 / 1.404 GB, free: 20.38 MB / 0.8386 GB Notification: Performance of Templates: time 0.004243/0.6655, allocations: 2.693 MB / 1.407 GB, free: 17.88 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches