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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.198/2.198, allocations: 387.1 MB / 399.7 MB, free: 9.477 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.001085/0.001085, allocations: 180.9 kB / 492.3 MB, free: 0.6289 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.691/1.691, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.000973/0.0009729, allocations: 101.8 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.998e-05/3e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3095, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.601/4.911, allocations: 1.78 GB / 2.992 GB, free: 60.18 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/4.911, allocations: 103.1 kB / 2.992 GB, free: 60.12 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 1.127/6.038, allocations: 173 MB / 3.161 GB, free: 353 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.194e-06/6.038, allocations: 0 / 3.161 GB, free: 353 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002118/6.038, allocations: 99.92 kB / 3.161 GB, free: 352.9 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: 1069 * Number of variables: 1069 Notification: Performance of Generate backend data structure: time 0.009319/6.047, allocations: 3.485 MB / 3.165 GB, free: 349.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/6.047, allocations: 8.031 kB / 3.165 GB, free: 349.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01219/6.06, allocations: 1.793 MB / 3.166 GB, free: 347.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005332/6.065, allocations: 2.222 MB / 3.169 GB, free: 345.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002099/6.065, allocations: 308.2 kB / 3.169 GB, free: 345 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001384/6.067, allocations: 396 kB / 3.169 GB, free: 344.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/6.079, allocations: 5.633 MB / 3.175 GB, free: 338.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-05/6.079, allocations: 11.78 kB / 3.175 GB, free: 338.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005294/6.079, allocations: 172 kB / 3.175 GB, free: 338.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001529/6.08, allocations: 203.1 kB / 3.175 GB, free: 338.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009552/6.089, allocations: 5.354 MB / 3.18 GB, free: 333 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03501/6.124, allocations: 23.12 MB / 3.203 GB, free: 308.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005324/6.13, allocations: 3.471 MB / 3.206 GB, free: 305 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001997/6.132, allocations: 1.614 MB / 3.208 GB, free: 303.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007002/6.132, allocations: 0.5073 MB / 3.208 GB, free: 302.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002332/6.135, allocations: 1.803 MB / 3.21 GB, free: 301 MB / 1.151 GB Notification: Performance of pre-optimization done (n=242): time 3.897e-06/6.135, allocations: 0 / 3.21 GB, free: 301 MB / 1.151 GB Notification: Performance of matching and sorting (n=245): time 0.007005/6.142, allocations: 5.121 MB / 3.215 GB, free: 295.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/6.142, allocations: 449.5 kB / 3.216 GB, free: 295.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001832/6.144, allocations: 1.531 MB / 3.217 GB, free: 293.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.000232/6.144, allocations: 69.7 kB / 3.217 GB, free: 293.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001049/6.145, allocations: 1.622 MB / 3.219 GB, free: 292 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005299/6.145, allocations: 0.8163 MB / 3.22 GB, free: 291.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001862/6.146, allocations: 52 kB / 3.22 GB, free: 291.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001117/6.146, allocations: 407.4 kB / 3.22 GB, free: 290.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001741/6.148, allocations: 1.313 MB / 3.221 GB, free: 289.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002009/6.15, allocations: 2.024 MB / 3.223 GB, free: 287.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002012/6.152, allocations: 1.601 MB / 3.225 GB, free: 285.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-06/6.152, allocations: 11.98 kB / 3.225 GB, free: 285.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=338) (initialization): time 0.005307/6.157, allocations: 3.647 MB / 3.228 GB, free: 281.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001415/6.158, allocations: 7.153 MB / 3.235 GB, free: 273.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.674e-05/6.158, allocations: 23.88 kB / 3.235 GB, free: 273.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.437e-05/6.158, allocations: 32 kB / 3.235 GB, free: 273.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003985/6.162, allocations: 0.8151 MB / 3.236 GB, free: 273 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.185e-05/6.162, allocations: 47.86 kB / 3.236 GB, free: 273 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003376/6.166, allocations: 394.1 kB / 3.237 GB, free: 272.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003701/6.166, allocations: 139.9 kB / 3.237 GB, free: 272.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/6.166, allocations: 7.938 kB / 3.237 GB, free: 272.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005002/6.171, allocations: 3.214 MB / 3.24 GB, free: 269.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.159e-05/6.171, allocations: 20 kB / 3.24 GB, free: 269.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.986e-05/6.171, allocations: 36 kB / 3.24 GB, free: 269.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003543/6.175, allocations: 0.7767 MB / 3.241 GB, free: 268.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.636e-05/6.175, allocations: 43.86 kB / 3.241 GB, free: 268.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003061/6.178, allocations: 346.2 kB / 3.241 GB, free: 268 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000282/6.178, allocations: 139.9 kB / 3.241 GB, free: 267.9 MB / 1.151 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.0006901/6.179, allocations: 272.1 kB / 3.242 GB, free: 267.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004985/6.18, allocations: 229.2 kB / 3.242 GB, free: 267.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00624/6.186, allocations: 3.692 MB / 3.245 GB, free: 263.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/6.186, allocations: 28 kB / 3.245 GB, free: 263.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/6.186, allocations: 0 / 3.245 GB, free: 263.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.33e-05/6.186, allocations: 11.95 kB / 3.245 GB, free: 263.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/6.197, allocations: 8.234 MB / 3.253 GB, free: 255.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/6.197, allocations: 0 / 3.253 GB, free: 255.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003518/6.2, allocations: 0.7335 MB / 3.254 GB, free: 254.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.876e-05/6.2, allocations: 12 kB / 3.254 GB, free: 254.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001935/6.201, allocations: 75.89 kB / 3.254 GB, free: 254.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.057e-05/6.201, allocations: 12 kB / 3.254 GB, free: 254.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/6.201, allocations: 7.938 kB / 3.254 GB, free: 254.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004504/6.205, allocations: 3.636 MB / 3.258 GB, free: 250.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001166/6.206, allocations: 0.7665 MB / 3.259 GB, free: 249.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003468/6.207, allocations: 59.98 kB / 3.259 GB, free: 249.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002529/6.209, allocations: 279.6 kB / 3.259 GB, free: 249.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002733/6.209, allocations: 165.7 kB / 3.259 GB, free: 249.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000204/6.21, allocations: 91.94 kB / 3.259 GB, free: 249.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001516/6.211, allocations: 1.253 MB / 3.26 GB, free: 247.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.6e-07/6.211, allocations: 0 / 3.26 GB, free: 247.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003902/6.215, allocations: 1.351 MB / 3.262 GB, free: 246.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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.00144/6.217, allocations: 0.6644 MB / 3.262 GB, free: 246 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.006623/6.223, allocations: 5.048 MB / 3.267 GB, free: 240.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/6.223, allocations: 0 / 3.267 GB, free: 240.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001911/6.225, allocations: 1.597 MB / 3.269 GB, free: 239.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/6.228, allocations: 0.5286 MB / 3.269 GB, free: 238.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008811/6.236, allocations: 5.688 MB / 3.275 GB, free: 233 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001766/6.238, allocations: 2.549 MB / 3.277 GB, free: 230.4 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.005643/6.244, allocations: 1.401 MB / 3.279 GB, free: 229 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009697/6.245, allocations: 239.3 kB / 3.279 GB, free: 228.8 MB / 1.151 GB Notification: Performance of SimCode: time 8.11e-07/6.245, allocations: 4 kB / 3.279 GB, free: 228.8 MB / 1.151 GB Notification: Performance of Templates: time 0.05645/6.301, allocations: 41.65 MB / 3.32 GB, free: 187.3 MB / 1.151 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