Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 95.86 kB / 15.05 MB, free: 1.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001444/0.001445, allocations: 181.3 kB / 15.95 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 223.2 MB / 239.9 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.452/2.452, allocations: 390.3 MB / 0.6653 GB, free: 2.887 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003634, allocations: 12 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8637/0.864, allocations: 142.3 MB / 0.9535 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC): time 0.03609/0.9002, allocations: 32.7 MB / 0.9855 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.02313/0.9233, allocations: 12.53 MB / 0.9977 GB, free: 2.824 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007223/0.9306, allocations: 139.1 kB / 0.9978 GB, free: 2.688 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.004649/0.9353, allocations: 0.7452 MB / 0.9986 GB, free: 1.938 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01116/0.9465, allocations: 1.885 MB / 1 GB, free: 48 kB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.007688/0.9542, allocations: 1.647 MB / 1.002 GB, free: 14.4 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01254/0.9668, allocations: 4.84 MB / 1.007 GB, free: 9.551 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0223/0.9891, allocations: 11.43 MB / 1.018 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007158/0.9963, allocations: 2.635 MB / 1.02 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006956/1.003, allocations: 2.663 MB / 1.023 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.003032/1.006, allocations: 324 kB / 1.023 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005098/1.011, allocations: 0.6556 MB / 1.024 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.005017/1.017, allocations: 2.245 MB / 1.026 GB, free: 5.492 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.004103/1.021, allocations: 1.182 MB / 1.027 GB, free: 4.301 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.01514/1.036, allocations: 9.578 MB / 1.037 GB, free: 10.7 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/1.036, allocations: 8 kB / 1.037 GB, free: 10.69 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.094e-06/1.036, allocations: 0 / 1.037 GB, free: 10.69 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0004846/1.036, allocations: 4 kB / 1.037 GB, free: 10.69 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1394 * Number of variables: 1394 Notification: Performance of Generate backend data structure: time 0.01726/1.054, allocations: 5.156 MB / 1.042 GB, free: 5.461 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/1.054, allocations: 8.031 kB / 1.042 GB, free: 5.453 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009264/1.063, allocations: 1.285 MB / 1.043 GB, free: 4.16 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008953/1.072, allocations: 3.468 MB / 1.046 GB, free: 0.6172 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003583/1.072, allocations: 382.1 kB / 1.047 GB, free: 248 kB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002341/1.075, allocations: 0.5036 MB / 1.047 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02184/1.097, allocations: 8.8 MB / 1.056 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002215/1.097, allocations: 27.77 kB / 1.056 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001406/1.098, allocations: 227.9 kB / 1.056 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00243/1.101, allocations: 0.6303 MB / 1.057 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01661/1.117, allocations: 6.975 MB / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06173/1.179, allocations: 40.41 MB / 1.103 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00505/1.184, allocations: 2.898 MB / 1.106 GB, free: 160 kB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003792/1.185, allocations: 26.09 kB / 1.106 GB, free: 132 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.637e-05/1.185, allocations: 64.66 kB / 1.106 GB, free: 56 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=265): time 4.087e-06/1.185, allocations: 0 / 1.106 GB, free: 56 kB / 0.8575 GB Notification: Performance of matching and sorting (n=424): time 0.3044/1.489, allocations: 77.4 MB / 1.182 GB, free: 1.953 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.296e-05/1.489, allocations: 94.73 kB / 1.182 GB, free: 1.848 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003575/1.493, allocations: 2.324 MB / 1.184 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0008263/1.494, allocations: 97.7 kB / 1.184 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001588/1.495, allocations: 2.348 MB / 1.186 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.002022/1.497, allocations: 1.432 MB / 1.188 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005666/1.498, allocations: 88 kB / 1.188 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000291/1.498, allocations: 487.2 kB / 1.188 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004581/1.503, allocations: 2.98 MB / 1.191 GB, free: 8.027 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005513/1.508, allocations: 3.816 MB / 1.195 GB, free: 3.879 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006111/1.514, allocations: 3.548 MB / 1.198 GB, free: 332 kB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.732e-05/1.514, allocations: 4 kB / 1.198 GB, free: 328 kB / 0.9512 GB Notification: Performance of matching and sorting (n=551) (initialization): time 0.03287/1.547, allocations: 12.5 MB / 1.211 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.299e-05/1.547, allocations: 12.78 kB / 1.211 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.231e-05/1.548, allocations: 24.09 kB / 1.211 GB, free: 3.68 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02466/1.572, allocations: 6.018 MB / 1.216 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002396/1.575, allocations: 491.2 kB / 1.217 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7524/2.327, allocations: 69.28 MB / 1.285 GB, free: 253.1 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004568/2.332, allocations: 214.6 kB / 1.285 GB, free: 253.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006927/2.332, allocations: 155.3 kB / 1.285 GB, free: 253 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 245 * 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: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 24 {(2,100.0%) 2,(1,100.0%) 1,(2,100.0%) 2,(1,100.0%) 1,(2,100.0%) 2,(1,100.0%) 1,(4,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(2,100.0%) 8,(2,100.0%) 16,(3,100.0%) 15,(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 16,(3,100.0%) 15,(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 16,(3,100.0%) 15,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004257/2.337, allocations: 2 MB / 1.287 GB, free: 252.2 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/2.338, allocations: 389.6 kB / 1.287 GB, free: 252.2 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02751/2.365, allocations: 12.19 MB / 1.299 GB, free: 247.3 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.571e-05/2.365, allocations: 41 kB / 1.299 GB, free: 247.3 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002401/2.366, allocations: 47.56 kB / 1.299 GB, free: 247.3 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001/2.366, allocations: 21.66 kB / 1.299 GB, free: 247.3 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03812/2.404, allocations: 19.12 MB / 1.318 GB, free: 239 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.054e-05/2.404, allocations: 10.73 kB / 1.318 GB, free: 239 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001664/2.406, allocations: 287.9 kB / 1.318 GB, free: 238.9 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01932/2.425, allocations: 5.573 MB / 1.324 GB, free: 236.1 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008512/2.426, allocations: 83.38 kB / 1.324 GB, free: 236 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06334/2.489, allocations: 66.9 MB / 1.389 GB, free: 168.2 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.946e-06/2.489, allocations: 11.94 kB / 1.389 GB, free: 168.2 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02739/2.517, allocations: 16.21 MB / 1.405 GB, free: 151.5 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002965/2.52, allocations: 1.051 MB / 1.406 GB, free: 150.5 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009097/2.521, allocations: 76 kB / 1.406 GB, free: 150.4 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002736/2.523, allocations: 219.7 kB / 1.406 GB, free: 150.2 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001462/2.525, allocations: 398.3 kB / 1.407 GB, free: 149.8 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003176/2.525, allocations: 112 kB / 1.407 GB, free: 149.7 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002225/2.527, allocations: 1.537 MB / 1.408 GB, free: 148.1 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.31e-07/2.527, allocations: 0 / 1.408 GB, free: 148.1 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.007777/2.535, allocations: 1.859 MB / 1.41 GB, free: 146.3 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 121 * 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: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 24 {(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 8,(3,100.0%) 15,(3,100.0%) 15,(3,100.0%) 15,(4,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 8,(3,100.0%) 15,(2,100.0%) 8,(3,100.0%) 15,(2,100.0%) 8,(3,100.0%) 15,(4,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007192/2.536, allocations: 214.7 kB / 1.41 GB, free: 146.1 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.01911/2.555, allocations: 12.19 MB / 1.422 GB, free: 133.6 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.447e-05/2.555, allocations: 4 kB / 1.422 GB, free: 133.6 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.01599/2.571, allocations: 8.365 MB / 1.43 GB, free: 124.9 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005758/2.577, allocations: 1.046 MB / 1.431 GB, free: 123.9 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02266/2.6, allocations: 14.27 MB / 1.445 GB, free: 109.6 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006666/2.606, allocations: 4.195 MB / 1.449 GB, free: 105.4 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.003286/2.61, allocations: 0.6669 MB / 1.45 GB, free: 104.7 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008426/2.611, allocations: 179.4 kB / 1.45 GB, free: 104.5 MB / 1.014 GB Notification: Performance of SimCode: time 1.403e-06/2.611, allocations: 0 / 1.45 GB, free: 104.5 MB / 1.014 GB Notification: Performance of Templates: time 0.1535/2.764, allocations: 102.5 MB / 1.55 GB, free: 3.055 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches