Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.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.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.1..real|grid.P.2..real|grid.P.3..real|RL.load1.S.1.|RL.load1.S.2.|RL.load2.S.1.|RL.load2.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.1..real|grid.P.2..real|grid.P.3..real|RL.load1.S.1.|RL.load1.S.2.|RL.load2.S.1.|RL.load2.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N") [: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.72/1.72, 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.0009219/0.0009218, allocations: 172.7 kB / 487 MB, free: 0.7266 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.133/1.133, allocations: 221.4 MB / 0.7819 GB, free: 6.832 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.0008236/0.0008236, allocations: 103.8 kB / 0.9213 GB, free: 43.71 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 6.512e-06/6.552e-06, allocations: 0 / 1.066 GB, free: 7.602 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6197/0.6198, allocations: 142.3 MB / 1.205 GB, free: 1.973 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.521/3.141, allocations: 1.779 GB / 2.984 GB, free: 186.9 MB / 1.354 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/3.141, allocations: 95.94 kB / 2.984 GB, free: 186.8 MB / 1.354 GB Notification: Performance of FrontEnd: time 0.335/3.477, allocations: 172.9 MB / 3.153 GB, free: 12.75 MB / 1.354 GB Notification: Performance of Transformations before backend: time 0.000151/3.477, allocations: 95.94 kB / 3.153 GB, free: 12.66 MB / 1.354 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1069 * Number of variables: 1069 Notification: Performance of Generate backend data structure: time 0.005434/3.482, allocations: 3.559 MB / 3.157 GB, free: 9.031 MB / 1.354 GB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/3.482, allocations: 11.97 kB / 3.157 GB, free: 9.02 MB / 1.354 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01025/3.492, allocations: 1.922 MB / 3.159 GB, free: 7.09 MB / 1.354 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003057/3.495, allocations: 2.233 MB / 3.161 GB, free: 4.801 MB / 1.354 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-05/3.496, allocations: 135.9 kB / 3.161 GB, free: 4.668 MB / 1.354 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004724/3.496, allocations: 239.9 kB / 3.161 GB, free: 4.434 MB / 1.354 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2972/3.793, allocations: 5.022 MB / 3.166 GB, free: 0.6047 GB / 1.354 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007566/3.801, allocations: 5.142 MB / 3.171 GB, free: 0.6042 GB / 1.354 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.902e-05/3.801, allocations: 11.14 kB / 3.171 GB, free: 0.6042 GB / 1.354 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003767/3.801, allocations: 3.938 kB / 3.171 GB, free: 0.6042 GB / 1.354 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000124/3.801, allocations: 205.5 kB / 3.171 GB, free: 0.6042 GB / 1.354 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0232/3.825, allocations: 22.83 MB / 3.194 GB, free: 0.5939 GB / 1.354 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003567/3.828, allocations: 3.08 MB / 3.197 GB, free: 0.5938 GB / 1.354 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001691/3.83, allocations: 1.574 MB / 3.198 GB, free: 0.5938 GB / 1.354 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000617/3.831, allocations: 0.5113 MB / 3.199 GB, free: 0.5933 GB / 1.354 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001962/3.833, allocations: 1.761 MB / 3.201 GB, free: 0.5932 GB / 1.354 GB Notification: Performance of pre-optimization done (n=242): time 3.867e-06/3.833, allocations: 0 / 3.201 GB, free: 0.5932 GB / 1.354 GB Notification: Performance of matching and sorting (n=245): time 0.006615/3.839, allocations: 5.211 MB / 3.206 GB, free: 0.5916 GB / 1.354 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.967e-05/3.839, allocations: 449.2 kB / 3.206 GB, free: 0.5911 GB / 1.354 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/3.841, allocations: 1.317 MB / 3.207 GB, free: 0.5909 GB / 1.354 GB Notification: Performance of collectPreVariables (initialization): time 0.0001727/3.841, allocations: 29.39 kB / 3.207 GB, free: 0.5909 GB / 1.354 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007711/3.842, allocations: 1.4 MB / 3.209 GB, free: 0.5903 GB / 1.354 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004932/3.842, allocations: 0.7827 MB / 3.209 GB, free: 0.5898 GB / 1.354 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001792/3.842, allocations: 0 / 3.209 GB, free: 0.5898 GB / 1.354 GB Notification: Performance of setup shared object (initialization): time 0.0001012/3.842, allocations: 416.9 kB / 3.21 GB, free: 0.5895 GB / 1.354 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001574/3.844, allocations: 1.296 MB / 3.211 GB, free: 0.5895 GB / 1.354 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001852/3.846, allocations: 1.994 MB / 3.213 GB, free: 0.5887 GB / 1.354 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002416/3.848, allocations: 1.743 MB / 3.215 GB, free: 0.5887 GB / 1.354 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.328e-06/3.848, allocations: 7.219 kB / 3.215 GB, free: 0.5887 GB / 1.354 GB Notification: Performance of matching and sorting (n=338) (initialization): time 0.005097/3.853, allocations: 3.647 MB / 3.218 GB, free: 0.5884 GB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 0.000888/3.854, allocations: 7.066 MB / 3.225 GB, free: 0.5813 GB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.983e-05/3.854, allocations: 18.59 kB / 3.225 GB, free: 0.5813 GB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.087e-05/3.854, allocations: 37.38 kB / 3.225 GB, free: 0.5813 GB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003885/3.858, allocations: 0.7956 MB / 3.226 GB, free: 0.5813 GB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.381e-05/3.858, allocations: 40.61 kB / 3.226 GB, free: 0.5813 GB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002894/3.861, allocations: 321.3 kB / 3.226 GB, free: 0.5813 GB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002511/3.861, allocations: 141.8 kB / 3.227 GB, free: 0.5813 GB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 5.711e-06/3.861, allocations: 7.469 kB / 3.227 GB, free: 0.5813 GB / 1.354 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004571/3.866, allocations: 3.158 MB / 3.23 GB, free: 0.5812 GB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/3.866, allocations: 21.78 kB / 3.23 GB, free: 0.5812 GB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.915e-05/3.866, allocations: 32.59 kB / 3.23 GB, free: 0.5812 GB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003675/3.87, allocations: 0.7706 MB / 3.23 GB, free: 0.5812 GB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.206e-05/3.87, allocations: 40.27 kB / 3.231 GB, free: 0.5812 GB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002646/3.872, allocations: 295.6 kB / 3.231 GB, free: 0.5811 GB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002465/3.873, allocations: 137.9 kB / 3.231 GB, free: 0.5811 GB / 1.354 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 338 * 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 0.0004775/3.873, allocations: 180.9 kB / 3.231 GB, free: 0.581 GB / 1.354 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003431/3.874, allocations: 218.8 kB / 3.231 GB, free: 0.5809 GB / 1.354 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006729/3.88, allocations: 3.817 MB / 3.235 GB, free: 0.5807 GB / 1.354 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-05/3.88, allocations: 26.12 kB / 3.235 GB, free: 0.5807 GB / 1.354 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/3.88, allocations: 5.844 kB / 3.235 GB, free: 0.5807 GB / 1.354 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.183e-05/3.88, allocations: 11.39 kB / 3.235 GB, free: 0.5807 GB / 1.354 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01073/3.891, allocations: 9.092 MB / 3.244 GB, free: 0.5795 GB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.898e-06/3.891, allocations: 13.2 kB / 3.244 GB, free: 0.5795 GB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003555/3.895, allocations: 0.6604 MB / 3.245 GB, free: 0.5795 GB / 1.354 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.888e-05/3.895, allocations: 17.34 kB / 3.245 GB, free: 0.5795 GB / 1.354 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001934/3.895, allocations: 49.33 kB / 3.245 GB, free: 0.5795 GB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-05/3.895, allocations: 21.91 kB / 3.245 GB, free: 0.5795 GB / 1.354 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/3.895, allocations: 10.94 kB / 3.245 GB, free: 0.5795 GB / 1.354 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00461/3.9, allocations: 4.214 MB / 3.249 GB, free: 0.5781 GB / 1.354 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/3.901, allocations: 0.7653 MB / 3.25 GB, free: 0.5778 GB / 1.354 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004349/3.901, allocations: 7.625 kB / 3.25 GB, free: 0.5778 GB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002644/3.904, allocations: 234.4 kB / 3.25 GB, free: 0.5778 GB / 1.354 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002558/3.904, allocations: 157.7 kB / 3.25 GB, free: 0.5778 GB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002178/3.904, allocations: 98.92 kB / 3.25 GB, free: 0.5778 GB / 1.354 GB Notification: Performance of sort global known variables: time 0.001186/3.905, allocations: 1.055 MB / 3.251 GB, free: 0.5777 GB / 1.354 GB Notification: Performance of remove unused functions: time 0.003492/3.909, allocations: 1.205 MB / 3.252 GB, free: 0.5777 GB / 1.354 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001086/3.91, allocations: 0.5593 MB / 3.253 GB, free: 0.5776 GB / 1.354 GB Notification: Performance of simCode: created initialization part: time 0.006078/3.916, allocations: 4.972 MB / 3.258 GB, free: 0.5776 GB / 1.354 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/3.916, allocations: 0 / 3.258 GB, free: 0.5776 GB / 1.354 GB Notification: Performance of simCode: created simulation system equations: time 0.001881/3.918, allocations: 1.636 MB / 3.259 GB, free: 0.5776 GB / 1.354 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002119/3.92, allocations: 465 kB / 3.26 GB, free: 0.5776 GB / 1.354 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009668/3.93, allocations: 5.814 MB / 3.265 GB, free: 0.5763 GB / 1.354 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003097/3.933, allocations: 2.863 MB / 3.268 GB, free: 0.5755 GB / 1.354 GB Notification: Performance of SimCode: time 7.41e-07/3.933, allocations: 0.625 kB / 3.268 GB, free: 0.5755 GB / 1.354 GB Notification: Performance of Templates: time 0.08507/4.018, allocations: 61.09 MB / 3.328 GB, free: 0.5727 GB / 1.354 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches