Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, 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.00207/0.002069, allocations: 193.6 kB / 16.14 MB, free: 6.699 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.431/1.431, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.825/2.825, allocations: 472.6 MB / 0.7447 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 67.55 kB / 0.9114 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3607, allocations: 159.9 MB / 1.068 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.02452/0.3853, allocations: 14.71 MB / 1.082 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01592/0.4012, allocations: 10.36 MB / 1.092 GB, free: 1.711 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002143/0.4034, allocations: 47.69 kB / 1.092 GB, free: 1.664 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004425/0.4079, allocations: 1.572 MB / 1.094 GB, free: 92 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006625/0.4146, allocations: 1.609 MB / 1.095 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002424/0.417, allocations: 0.6931 MB / 1.096 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.004911/0.4219, allocations: 3.405 MB / 1.099 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002248/0.4242, allocations: 1.352 MB / 1.101 GB, free: 8.98 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002554/0.4268, allocations: 1.39 MB / 1.102 GB, free: 7.586 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00238/0.4292, allocations: 1.175 MB / 1.103 GB, free: 6.406 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0004036/0.4296, allocations: 96 kB / 1.103 GB, free: 6.312 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002059/0.4316, allocations: 0.8851 MB / 1.104 GB, free: 5.426 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0006279/0.4323, allocations: 0.5412 MB / 1.104 GB, free: 4.883 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001144/0.4334, allocations: 0.882 MB / 1.105 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002845/0.4363, allocations: 2.729 MB / 1.108 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.082e-05/0.4363, allocations: 4 kB / 1.108 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.112e-06/0.4363, allocations: 0 / 1.108 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.942e-05/0.4364, allocations: 4 kB / 1.108 GB, free: 1.25 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003919/0.4403, allocations: 2.162 MB / 1.11 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.4403, allocations: 8.031 kB / 1.11 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01126/0.4516, allocations: 2.108 MB / 1.112 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00276/0.4544, allocations: 1.21 MB / 1.113 GB, free: 11.64 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.708e-05/0.4545, allocations: 94.62 kB / 1.113 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002489/0.4547, allocations: 124 kB / 1.114 GB, free: 11.43 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005472/0.4602, allocations: 2.67 MB / 1.116 GB, free: 8.609 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.941e-05/0.4603, allocations: 7.938 kB / 1.116 GB, free: 8.602 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001745/0.4605, allocations: 55.98 kB / 1.116 GB, free: 8.547 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006184/0.4611, allocations: 194.1 kB / 1.116 GB, free: 8.355 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007043/0.4681, allocations: 2.795 MB / 1.119 GB, free: 5.551 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01541/0.4836, allocations: 10.51 MB / 1.129 GB, free: 10.46 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005978/0.4896, allocations: 2.336 MB / 1.132 GB, free: 8.094 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002791/0.4924, allocations: 1.276 MB / 1.133 GB, free: 6.816 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 7.155e-05/0.4925, allocations: 17 kB / 1.133 GB, free: 6.801 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.448e-05/0.4926, allocations: 43.56 kB / 1.133 GB, free: 6.75 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=89): time 3.266e-06/0.4926, allocations: 0 / 1.133 GB, free: 6.75 MB / 0.8887 GB Notification: Performance of matching and sorting (n=153): time 0.05974/0.5523, allocations: 16.48 MB / 1.149 GB, free: 6.113 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.5525, allocations: 68.72 kB / 1.149 GB, free: 6.031 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002684/0.5552, allocations: 1.176 MB / 1.15 GB, free: 4.844 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.000329/0.5555, allocations: 53.7 kB / 1.15 GB, free: 4.785 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006447/0.5562, allocations: 0.7359 MB / 1.151 GB, free: 4.043 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007386/0.5569, allocations: 0.5237 MB / 1.152 GB, free: 3.512 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006787/0.5576, allocations: 287.4 kB / 1.152 GB, free: 3.223 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001035/0.5577, allocations: 309 kB / 1.152 GB, free: 2.918 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00338/0.5611, allocations: 1.51 MB / 1.154 GB, free: 1.406 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003672/0.5648, allocations: 1.776 MB / 1.155 GB, free: 15.54 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007238/0.5721, allocations: 3.373 MB / 1.159 GB, free: 12.07 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-05/0.5721, allocations: 4 kB / 1.159 GB, free: 12.06 MB / 0.92 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01374/0.5859, allocations: 5.272 MB / 1.164 GB, free: 6.75 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.148e-05/0.5859, allocations: 11.98 kB / 1.164 GB, free: 6.738 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.279e-05/0.586, allocations: 8.844 kB / 1.164 GB, free: 6.73 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007411/0.5934, allocations: 1.875 MB / 1.166 GB, free: 4.832 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/0.5955, allocations: 419.2 kB / 1.166 GB, free: 4.422 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03025/0.6257, allocations: 22.19 MB / 1.188 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003108/0.6289, allocations: 307.5 kB / 1.188 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004849/0.6294, allocations: 63.97 kB / 1.188 GB, free: 12.82 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001638/0.6311, allocations: 467.7 kB / 1.189 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009882/0.6321, allocations: 178 kB / 1.189 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01433/0.6464, allocations: 5.327 MB / 1.194 GB, free: 6.801 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.937e-05/0.6465, allocations: 12 kB / 1.194 GB, free: 6.789 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.55e-05/0.6466, allocations: 20 kB / 1.194 GB, free: 6.77 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.239e-05/0.6466, allocations: 7.969 kB / 1.194 GB, free: 6.762 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01764/0.6642, allocations: 7.422 MB / 1.201 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/0.6643, allocations: 4 kB / 1.201 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001606/0.6659, allocations: 355.7 kB / 1.202 GB, free: 14.86 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006538/0.6725, allocations: 1.705 MB / 1.203 GB, free: 13.13 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002434/0.6727, allocations: 48 kB / 1.203 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02802/0.7008, allocations: 21.34 MB / 1.224 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/0.7008, allocations: 11.94 kB / 1.224 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01315/0.714, allocations: 4.889 MB / 1.229 GB, free: 1.699 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001642/0.7157, allocations: 490.8 kB / 1.229 GB, free: 1.199 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006094/0.7163, allocations: 31.98 kB / 1.229 GB, free: 1.168 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002674/0.719, allocations: 315.5 kB / 1.23 GB, free: 0.8594 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009588/0.72, allocations: 153 kB / 1.23 GB, free: 0.707 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002533/0.7203, allocations: 55.97 kB / 1.23 GB, free: 0.6523 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001939/0.7222, allocations: 0.7899 MB / 1.231 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7222, allocations: 3.938 kB / 1.231 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003976/0.7262, allocations: 0.6562 MB / 1.231 GB, free: 15.2 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 simulation (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00056/0.7268, allocations: 140.7 kB / 1.231 GB, free: 15.06 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01221/0.7391, allocations: 5.132 MB / 1.236 GB, free: 9.82 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.344e-05/0.7391, allocations: 4.125 kB / 1.236 GB, free: 9.816 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.007612/0.7467, allocations: 3.358 MB / 1.24 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003724/0.7505, allocations: 0.5168 MB / 1.24 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/0.7616, allocations: 5.004 MB / 1.245 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5964/1.358, allocations: 1.565 MB / 1.247 GB, free: 165.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002029/1.36, allocations: 379.1 kB / 1.247 GB, free: 165.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004409/1.361, allocations: 105.8 kB / 1.247 GB, free: 165.3 MB / 0.9981 GB Notification: Performance of SimCode: time 1.222e-06/1.361, allocations: 0 / 1.247 GB, free: 165.3 MB / 0.9981 GB Notification: Performance of Templates: time 0.09356/1.454, allocations: 43.31 MB / 1.289 GB, free: 153.6 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches