Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.ACLine,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.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,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.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001898/0.001898, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.392/1.392, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.804/2.804, allocations: 472.6 MB / 0.7451 GB, free: 4.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 64.7 kB / 0.912 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3568/0.3581, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01831/0.3764, allocations: 14.07 MB / 1.082 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01916/0.3957, allocations: 9.387 MB / 1.091 GB, free: 2.902 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002515/0.3982, allocations: 59.69 kB / 1.091 GB, free: 2.844 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004868/0.4032, allocations: 1.668 MB / 1.093 GB, free: 1.172 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006111/0.4093, allocations: 1.546 MB / 1.094 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003115/0.4124, allocations: 0.7514 MB / 1.095 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.006015/0.4185, allocations: 2.513 MB / 1.097 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003183/0.4217, allocations: 1.411 MB / 1.099 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00261/0.4243, allocations: 1.047 MB / 1.1 GB, free: 9.859 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002973/0.4273, allocations: 1.133 MB / 1.101 GB, free: 8.723 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0009714/0.4283, allocations: 168 kB / 1.101 GB, free: 8.559 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002875/0.4312, allocations: 0.7955 MB / 1.102 GB, free: 7.762 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001233/0.4325, allocations: 0.6154 MB / 1.103 GB, free: 7.145 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.002648/0.4351, allocations: 0.9445 MB / 1.103 GB, free: 6.195 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.005181/0.4403, allocations: 2.726 MB / 1.106 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.4403, allocations: 3.938 kB / 1.106 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.659e-06/0.4404, allocations: 0 / 1.106 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.000119/0.4405, allocations: 3.938 kB / 1.106 GB, free: 3.453 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.006151/0.4466, allocations: 2.135 MB / 1.108 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.4467, allocations: 12.03 kB / 1.108 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01184/0.4586, allocations: 2.077 MB / 1.11 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003512/0.4621, allocations: 1.193 MB / 1.111 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.4623, allocations: 90.73 kB / 1.111 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006739/0.463, allocations: 124 kB / 1.112 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007333/0.4703, allocations: 2.682 MB / 1.114 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-05/0.4704, allocations: 7.938 kB / 1.114 GB, free: 10.87 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003759/0.4708, allocations: 55.98 kB / 1.114 GB, free: 10.81 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007297/0.4715, allocations: 178.1 kB / 1.114 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008722/0.4803, allocations: 2.799 MB / 1.117 GB, free: 7.828 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01836/0.4987, allocations: 10.52 MB / 1.127 GB, free: 12.72 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007002/0.5057, allocations: 2.528 MB / 1.13 GB, free: 10.13 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003195/0.509, allocations: 1.286 MB / 1.131 GB, free: 8.844 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 9.637e-05/0.5091, allocations: 9 kB / 1.131 GB, free: 8.832 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.997e-05/0.5092, allocations: 51.55 kB / 1.131 GB, free: 8.773 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=89): time 3.637e-06/0.5092, allocations: 0 / 1.131 GB, free: 8.773 MB / 0.8887 GB Notification: Performance of matching and sorting (n=131): time 0.04777/0.5569, allocations: 13.35 MB / 1.144 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.557, allocations: 68.66 kB / 1.144 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001969/0.559, allocations: 1.117 MB / 1.145 GB, free: 9.988 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001791/0.5592, allocations: 45.7 kB / 1.145 GB, free: 9.938 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005914/0.5598, allocations: 0.7155 MB / 1.146 GB, free: 9.219 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005451/0.5604, allocations: 457.4 kB / 1.147 GB, free: 8.766 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006046/0.561, allocations: 259.4 kB / 1.147 GB, free: 8.508 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.5612, allocations: 365.9 kB / 1.147 GB, free: 8.145 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003399/0.5646, allocations: 1.343 MB / 1.149 GB, free: 6.801 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003475/0.5681, allocations: 1.6 MB / 1.15 GB, free: 5.102 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006993/0.5751, allocations: 2.987 MB / 1.153 GB, free: 2.02 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.5751, allocations: 0 / 1.153 GB, free: 2.02 MB / 0.9044 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01209/0.5872, allocations: 4.454 MB / 1.157 GB, free: 13.51 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/0.5873, allocations: 8 kB / 1.157 GB, free: 13.5 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.173e-05/0.5873, allocations: 8 kB / 1.157 GB, free: 13.5 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005564/0.5929, allocations: 1.439 MB / 1.159 GB, free: 12.02 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002278/0.5952, allocations: 443.2 kB / 1.159 GB, free: 11.58 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02831/0.6235, allocations: 26.69 MB / 1.185 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00293/0.6265, allocations: 303.5 kB / 1.186 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000369/0.6269, allocations: 59.91 kB / 1.186 GB, free: 14.7 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001293/0.6282, allocations: 441.5 kB / 1.186 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005908/0.6288, allocations: 162.1 kB / 1.186 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01228/0.6411, allocations: 4.445 MB / 1.191 GB, free: 9.598 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.247e-05/0.6412, allocations: 20 kB / 1.191 GB, free: 9.578 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.216e-05/0.6412, allocations: 15.94 kB / 1.191 GB, free: 9.562 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.928e-05/0.6413, allocations: 8.078 kB / 1.191 GB, free: 9.555 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01655/0.6578, allocations: 6.782 MB / 1.197 GB, free: 2.609 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.138e-05/0.6579, allocations: 7.984 kB / 1.197 GB, free: 2.602 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001853/0.6598, allocations: 383.6 kB / 1.198 GB, free: 2.227 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005019/0.6648, allocations: 1.31 MB / 1.199 GB, free: 0.875 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001658/0.665, allocations: 39.95 kB / 1.199 GB, free: 0.8359 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.027/0.692, allocations: 25.5 MB / 1.224 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/0.6921, allocations: 4 kB / 1.224 GB, free: 5.508 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01171/0.7038, allocations: 4.208 MB / 1.228 GB, free: 1.207 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001208/0.705, allocations: 455 kB / 1.228 GB, free: 0.7422 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005206/0.7056, allocations: 24.11 kB / 1.228 GB, free: 0.7188 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002409/0.708, allocations: 315.4 kB / 1.229 GB, free: 420 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005428/0.7086, allocations: 124.7 kB / 1.229 GB, free: 296 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/0.7087, allocations: 51.95 kB / 1.229 GB, free: 244 kB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001522/0.7103, allocations: 0.7564 MB / 1.23 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.5e-07/0.7103, allocations: 0 / 1.23 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002984/0.7133, allocations: 0.5703 MB / 1.23 GB, free: 14.91 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004401/0.7137, allocations: 139.8 kB / 1.23 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01251/0.7262, allocations: 5.513 MB / 1.236 GB, free: 9.074 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/0.7263, allocations: 4 kB / 1.236 GB, free: 9.07 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.007044/0.7334, allocations: 3.491 MB / 1.239 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00331/0.7367, allocations: 0.5543 MB / 1.24 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01016/0.7469, allocations: 4.026 MB / 1.244 GB, free: 0.7969 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.6015/1.348, allocations: 1.468 MB / 1.245 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00213/1.351, allocations: 428.9 kB / 1.245 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004384/1.351, allocations: 114.4 kB / 1.245 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of SimCode: time 9.72e-07/1.351, allocations: 0 / 1.245 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of Templates: time 0.0802/1.431, allocations: 38.95 MB / 1.283 GB, free: 154.6 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches