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.292/2.292, allocations: 387.4 MB / 394.9 MB, free: 13.34 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.001122/0.001122, allocations: 180.8 kB / 487.4 MB, free: 5.043 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.496/1.496, allocations: 221.5 MB / 0.7824 GB, free: 1 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009859/0.000986, allocations: 103.8 kB / 0.9219 GB, free: 2.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.575e-05/1.578e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2812, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.768/5.049, allocations: 1.779 GB / 2.985 GB, free: 103.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/5.049, allocations: 106.5 kB / 2.985 GB, free: 103.3 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 1.111/6.16, allocations: 172.2 MB / 3.153 GB, free: 363.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.064e-06/6.16, allocations: 2.188 kB / 3.153 GB, free: 363.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003658/6.16, allocations: 92.31 kB / 3.153 GB, free: 363.3 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.011/6.171, allocations: 3.487 MB / 3.157 GB, free: 361.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/6.171, allocations: 7.344 kB / 3.157 GB, free: 361.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01211/6.184, allocations: 1.781 MB / 3.159 GB, free: 361.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00634/6.19, allocations: 2.227 MB / 3.161 GB, free: 361 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001846/6.19, allocations: 134.4 kB / 3.161 GB, free: 361 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001506/6.192, allocations: 239.4 kB / 3.161 GB, free: 361 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01128/6.203, allocations: 4.93 MB / 3.166 GB, free: 360.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01487/6.218, allocations: 5.052 MB / 3.171 GB, free: 358.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001149/6.218, allocations: 9.875 kB / 3.171 GB, free: 358.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000573/6.219, allocations: 11.73 kB / 3.171 GB, free: 358.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000187/6.219, allocations: 202.3 kB / 3.171 GB, free: 358.2 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03101/6.25, allocations: 22.19 MB / 3.193 GB, free: 342.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004707/6.255, allocations: 3.338 MB / 3.196 GB, free: 341 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00186/6.257, allocations: 1.534 MB / 3.197 GB, free: 340.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006887/6.257, allocations: 0.5122 MB / 3.198 GB, free: 339.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00222/6.259, allocations: 1.747 MB / 3.2 GB, free: 338.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=242): time 4.469e-06/6.259, allocations: 0 / 3.2 GB, free: 338.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=245): time 0.01393/6.273, allocations: 6.078 MB / 3.206 GB, free: 335.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/6.274, allocations: 447.7 kB / 3.206 GB, free: 334.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001807/6.275, allocations: 1.296 MB / 3.207 GB, free: 333.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0004512/6.276, allocations: 28.73 kB / 3.207 GB, free: 333.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001244/6.277, allocations: 1.627 MB / 3.209 GB, free: 332.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008274/6.278, allocations: 0.7812 MB / 3.21 GB, free: 331.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/6.278, allocations: 0 / 3.21 GB, free: 331.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001537/6.278, allocations: 411.4 kB / 3.21 GB, free: 331.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001709/6.28, allocations: 1.259 MB / 3.211 GB, free: 330 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001968/6.282, allocations: 1.954 MB / 3.213 GB, free: 327.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008371/6.29, allocations: 2.659 MB / 3.216 GB, free: 325.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.732e-05/6.291, allocations: 4 kB / 3.216 GB, free: 325.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=338) (initialization): time 0.01281/6.303, allocations: 4.525 MB / 3.22 GB, free: 320.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001432/6.305, allocations: 7.082 MB / 3.227 GB, free: 312.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.687e-05/6.305, allocations: 19.94 kB / 3.227 GB, free: 312.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.441e-05/6.305, allocations: 32 kB / 3.227 GB, free: 312.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00413/6.309, allocations: 0.8112 MB / 3.228 GB, free: 312.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.056e-05/6.309, allocations: 43.86 kB / 3.228 GB, free: 312 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003419/6.313, allocations: 338 kB / 3.228 GB, free: 311.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003935/6.313, allocations: 139.9 kB / 3.229 GB, free: 311.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/6.313, allocations: 4 kB / 3.229 GB, free: 311.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01047/6.323, allocations: 4.062 MB / 3.232 GB, free: 307.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.783e-05/6.324, allocations: 16 kB / 3.233 GB, free: 307.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.007e-05/6.324, allocations: 32 kB / 3.233 GB, free: 307.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003842/6.327, allocations: 0.7725 MB / 3.233 GB, free: 306.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-05/6.328, allocations: 39.86 kB / 3.233 GB, free: 306.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003284/6.331, allocations: 298.2 kB / 3.234 GB, free: 306.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003279/6.331, allocations: 135.9 kB / 3.234 GB, free: 306.2 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.0007291/6.332, allocations: 176.2 kB / 3.234 GB, free: 306 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005397/6.332, allocations: 225.3 kB / 3.234 GB, free: 305.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01161/6.344, allocations: 4.601 MB / 3.239 GB, free: 301.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.508e-05/6.344, allocations: 27.98 kB / 3.239 GB, free: 301.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/6.344, allocations: 4 kB / 3.239 GB, free: 301.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-05/6.344, allocations: 11.95 kB / 3.239 GB, free: 301.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01619/6.36, allocations: 8.434 MB / 3.247 GB, free: 292.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/6.36, allocations: 0 / 3.247 GB, free: 292.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003653/6.364, allocations: 0.7296 MB / 3.248 GB, free: 291.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.084e-05/6.364, allocations: 12 kB / 3.248 GB, free: 291.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002066/6.364, allocations: 47.88 kB / 3.248 GB, free: 291.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-05/6.364, allocations: 12 kB / 3.248 GB, free: 291.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/6.364, allocations: 11.86 kB / 3.248 GB, free: 291.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009886/6.374, allocations: 4.582 MB / 3.252 GB, free: 287 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001316/6.376, allocations: 0.755 MB / 3.253 GB, free: 286.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004088/6.376, allocations: 7.984 kB / 3.253 GB, free: 286.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002627/6.379, allocations: 235.7 kB / 3.253 GB, free: 286 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002433/6.379, allocations: 165.7 kB / 3.253 GB, free: 285.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001953/6.379, allocations: 87.94 kB / 3.253 GB, free: 285.8 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001434/6.381, allocations: 1.044 MB / 3.254 GB, free: 284.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.3e-07/6.381, allocations: 0 / 3.254 GB, free: 284.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004098/6.385, allocations: 1.205 MB / 3.256 GB, free: 283.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.001429/6.386, allocations: 0.5971 MB / 3.256 GB, free: 283.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.006511/6.393, allocations: 4.812 MB / 3.261 GB, free: 278.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/6.393, allocations: 5.125 kB / 3.261 GB, free: 278.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001933/6.395, allocations: 1.546 MB / 3.262 GB, free: 276.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002825/6.397, allocations: 479.8 kB / 3.263 GB, free: 276.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/6.408, allocations: 5.534 MB / 3.268 GB, free: 270.7 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002025/6.41, allocations: 2.544 MB / 3.271 GB, free: 268.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.006331/6.416, allocations: 1.386 MB / 3.272 GB, free: 266.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009858/6.417, allocations: 231.3 kB / 3.272 GB, free: 266.5 MB / 1.151 GB Notification: Performance of SimCode: time 7.21e-07/6.417, allocations: 0 / 3.272 GB, free: 266.5 MB / 1.151 GB Notification: Performance of Templates: time 0.06256/6.48, allocations: 39.03 MB / 3.31 GB, free: 227.8 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