Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_N,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_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,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_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002286/0.002286, allocations: 193.1 kB / 16.14 MB, free: 6.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.88/2.88, allocations: 474.4 MB / 0.7465 GB, free: 3.156 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.00141, allocations: 64.38 kB / 0.9135 GB, free: 32.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3506, allocations: 160.3 MB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.04339/0.3941, allocations: 40.8 MB / 1.11 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02617/0.4203, allocations: 15.05 MB / 1.125 GB, free: 0.5586 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005477/0.4258, allocations: 171 kB / 1.125 GB, free: 400 kB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.01146/0.4374, allocations: 4.157 MB / 1.129 GB, free: 12.23 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.01172/0.4491, allocations: 2.64 MB / 1.131 GB, free: 9.574 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0108/0.46, allocations: 2.891 MB / 1.134 GB, free: 6.688 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.02111/0.4811, allocations: 16 MB / 1.15 GB, free: 6.641 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02557/0.5067, allocations: 13.64 MB / 1.163 GB, free: 8.867 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009731/0.5165, allocations: 4.102 MB / 1.167 GB, free: 4.75 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01177/0.5283, allocations: 5.479 MB / 1.173 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.003763/0.5321, allocations: 0.6133 MB / 1.173 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008033/0.5402, allocations: 2.044 MB / 1.175 GB, free: 12.59 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.007676/0.5479, allocations: 3.359 MB / 1.178 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.009899/0.5578, allocations: 3.916 MB / 1.182 GB, free: 5.293 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.02192/0.5798, allocations: 14.03 MB / 1.196 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/0.5798, allocations: 0 / 1.196 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.976e-06/0.5798, allocations: 3.938 kB / 1.196 GB, free: 7.215 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0005615/0.5804, allocations: 0 / 1.196 GB, free: 7.215 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.02616/0.6066, allocations: 7.593 MB / 1.203 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.6066, allocations: 12.03 kB / 1.203 GB, free: 15.53 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01226/0.6189, allocations: 1.522 MB / 1.205 GB, free: 14 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01078/0.6297, allocations: 4.201 MB / 1.209 GB, free: 9.719 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000435/0.6302, allocations: 456.5 kB / 1.209 GB, free: 9.27 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00237/0.6326, allocations: 0.6016 MB / 1.21 GB, free: 8.668 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02566/0.6583, allocations: 10.68 MB / 1.22 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002503/0.6585, allocations: 27.72 kB / 1.22 GB, free: 13.58 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001637/0.6602, allocations: 267.9 kB / 1.221 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002686/0.6629, allocations: 0.7729 MB / 1.221 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01956/0.6825, allocations: 8.561 MB / 1.23 GB, free: 3.961 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7145/1.397, allocations: 46.86 MB / 1.276 GB, free: 134.9 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007238/1.404, allocations: 4.31 MB / 1.28 GB, free: 133 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006502/1.411, allocations: 3.698 MB / 1.283 GB, free: 131.5 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000404/1.411, allocations: 36.62 kB / 1.283 GB, free: 131.5 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.832e-05/1.411, allocations: 77.19 kB / 1.283 GB, free: 131.4 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=353): time 5.911e-06/1.411, allocations: 0 / 1.283 GB, free: 131.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=578): time 0.5019/1.913, allocations: 122.7 MB / 1.403 GB, free: 35.11 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/1.913, allocations: 107.9 kB / 1.403 GB, free: 34.99 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005648/1.919, allocations: 2.685 MB / 1.406 GB, free: 32.3 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.001562/1.921, allocations: 121.7 kB / 1.406 GB, free: 32.18 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001457/1.922, allocations: 2.675 MB / 1.409 GB, free: 29.48 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002463/1.925, allocations: 1.961 MB / 1.411 GB, free: 27.54 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00318/1.928, allocations: 0.9209 MB / 1.412 GB, free: 26.61 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.306e-05/1.928, allocations: 309 kB / 1.412 GB, free: 26.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006006/1.934, allocations: 4.079 MB / 1.416 GB, free: 22.22 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006918/1.941, allocations: 5.023 MB / 1.421 GB, free: 16.88 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01387/1.955, allocations: 9.836 MB / 1.43 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-05/1.955, allocations: 12 kB / 1.43 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.04541/2, allocations: 17 MB / 1.447 GB, free: 5.516 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 5.574e-05/2, allocations: 21.66 kB / 1.447 GB, free: 5.496 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.73e-05/2, allocations: 20 kB / 1.447 GB, free: 5.477 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03462/2.035, allocations: 9.084 MB / 1.456 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002857/2.038, allocations: 0.5226 MB / 1.456 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1049/2.143, allocations: 70.52 MB / 1.525 GB, free: 3.828 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004905/2.148, allocations: 279.8 kB / 1.526 GB, free: 3.555 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007004/2.149, allocations: 196 kB / 1.526 GB, free: 3.363 MB / 1.092 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 (274): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(5,17,84.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (14,72,59.2%), (14,72,59.2%), (6,40,77.8%), (8,70,73.4%), (8,70,70.3%), (6,40,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004566/2.153, allocations: 2.414 MB / 1.528 GB, free: 0.9375 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001285/2.154, allocations: 478.4 kB / 1.529 GB, free: 476 kB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03945/2.194, allocations: 16.87 MB / 1.545 GB, free: 15.69 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.049e-05/2.194, allocations: 56 kB / 1.545 GB, free: 15.64 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002314/2.194, allocations: 76 kB / 1.545 GB, free: 15.56 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001315/2.194, allocations: 27.89 kB / 1.545 GB, free: 15.54 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05836/2.253, allocations: 25.66 MB / 1.57 GB, free: 5.645 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.729e-05/2.253, allocations: 8 kB / 1.57 GB, free: 5.637 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001913/2.255, allocations: 315.6 kB / 1.571 GB, free: 5.328 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0304/2.285, allocations: 8.275 MB / 1.579 GB, free: 13.02 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001281/2.286, allocations: 108 kB / 1.579 GB, free: 12.91 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1019/2.388, allocations: 67.4 MB / 1.645 GB, free: 8.051 MB / 1.217 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/2.388, allocations: 12 kB / 1.645 GB, free: 8.039 MB / 1.217 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04546/2.434, allocations: 21.56 MB / 1.666 GB, free: 2.117 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003724/2.438, allocations: 1.358 MB / 1.667 GB, free: 0.7344 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001228/2.439, allocations: 104 kB / 1.667 GB, free: 0.6328 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003427/2.442, allocations: 291.6 kB / 1.667 GB, free: 356 kB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00194/2.444, allocations: 0.5225 MB / 1.668 GB, free: 15.82 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004158/2.445, allocations: 144 kB / 1.668 GB, free: 15.68 MB / 1.248 GB Notification: Performance of sorting global known variables: time 0.002569/2.447, allocations: 1.78 MB / 1.67 GB, free: 13.91 MB / 1.248 GB Notification: Performance of sort global known variables: time 1.31e-07/2.447, allocations: 3.938 kB / 1.67 GB, free: 13.91 MB / 1.248 GB Notification: Performance of remove unused functions: time 0.007819/2.455, allocations: 2.461 MB / 1.672 GB, free: 11.45 MB / 1.248 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (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],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.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 (142): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(6,40,77.8%), (8,70,70.3%), (14,72,51.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (5,17,84.0%), (6,40,83.3%), (8,70,70.3%), (14,72,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000827/2.456, allocations: 242.2 kB / 1.672 GB, free: 11.21 MB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.02659/2.483, allocations: 14.48 MB / 1.686 GB, free: 12.53 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/2.483, allocations: 7.938 kB / 1.686 GB, free: 12.52 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.02102/2.504, allocations: 9.355 MB / 1.696 GB, free: 3.02 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007762/2.511, allocations: 1.279 MB / 1.697 GB, free: 1.762 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03073/2.542, allocations: 18.75 MB / 1.715 GB, free: 14.89 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006725/2.549, allocations: 4.893 MB / 1.72 GB, free: 9.953 MB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.003082/2.552, allocations: 0.7449 MB / 1.721 GB, free: 9.203 MB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006297/2.553, allocations: 199.4 kB / 1.721 GB, free: 9.008 MB / 1.295 GB Notification: Performance of SimCode: time 1.112e-06/2.553, allocations: 0 / 1.721 GB, free: 9.008 MB / 1.295 GB Notification: Performance of Templates: time 0.8192/3.372, allocations: 142.8 MB / 1.86 GB, free: 343.2 MB / 1.295 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches