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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001175/0.001175, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001703/0.001703, allocations: 172.7 kB / 15.95 MB, free: 208 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.547/1.547, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.908/2.908, allocations: 462.6 MB / 0.736 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003861/0.0003861, allocations: 10.33 kB / 0.9021 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3519, allocations: 159.6 MB / 1.058 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01479/0.3667, allocations: 12.68 MB / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01376/0.3805, allocations: 8.738 MB / 1.079 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001598/0.3822, allocations: 51.62 kB / 1.079 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009628/0.3832, allocations: 261.8 kB / 1.079 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004043/0.3872, allocations: 1.279 MB / 1.08 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001733/0.389, allocations: 0.5212 MB / 1.081 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.004139/0.3931, allocations: 2.672 MB / 1.084 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003994/0.3971, allocations: 1.79 MB / 1.085 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002638/0.3998, allocations: 0.8403 MB / 1.086 GB, free: 8.445 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002566/0.4024, allocations: 1.035 MB / 1.087 GB, free: 7.406 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0002623/0.4027, allocations: 68 kB / 1.087 GB, free: 7.34 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001373/0.404, allocations: 431.5 kB / 1.088 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0005916/0.4046, allocations: 0.5101 MB / 1.088 GB, free: 6.406 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0006488/0.4053, allocations: 344.8 kB / 1.089 GB, free: 6.062 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002753/0.4081, allocations: 2.123 MB / 1.091 GB, free: 3.934 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.4081, allocations: 0 / 1.091 GB, free: 3.934 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.054e-06/0.4081, allocations: 0 / 1.091 GB, free: 3.934 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.606e-05/0.4081, allocations: 4 kB / 1.091 GB, free: 3.93 MB / 0.8419 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.00369/0.4118, allocations: 1.831 MB / 1.092 GB, free: 2.043 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.4119, allocations: 12.56 kB / 1.092 GB, free: 2.031 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01057/0.4225, allocations: 2.151 MB / 1.094 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002814/0.4253, allocations: 1.154 MB / 1.096 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.874e-05/0.4254, allocations: 90.3 kB / 1.096 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003515/0.4258, allocations: 116 kB / 1.096 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006122/0.4319, allocations: 2.694 MB / 1.098 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.552e-05/0.432, allocations: 7.938 kB / 1.098 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002124/0.4322, allocations: 55.98 kB / 1.098 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00056/0.4328, allocations: 178.1 kB / 1.099 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007533/0.4403, allocations: 2.838 MB / 1.101 GB, free: 8.531 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01623/0.4566, allocations: 10.56 MB / 1.112 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006449/0.4631, allocations: 2.568 MB / 1.114 GB, free: 10.75 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003147/0.4663, allocations: 1.303 MB / 1.116 GB, free: 9.441 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 8.691e-05/0.4664, allocations: 12.98 kB / 1.116 GB, free: 9.43 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.4665, allocations: 43.56 kB / 1.116 GB, free: 9.375 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=89): time 3.436e-06/0.4665, allocations: 0 / 1.116 GB, free: 9.375 MB / 0.8731 GB Notification: Performance of matching and sorting (n=131): time 0.04241/0.5089, allocations: 13.44 MB / 1.129 GB, free: 11.72 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.071e-05/0.509, allocations: 64.72 kB / 1.129 GB, free: 11.64 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001726/0.5108, allocations: 1.101 MB / 1.13 GB, free: 10.52 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0002299/0.511, allocations: 53.7 kB / 1.13 GB, free: 10.46 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005818/0.5116, allocations: 0.7155 MB / 1.131 GB, free: 9.742 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005212/0.5121, allocations: 457.5 kB / 1.131 GB, free: 9.289 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.5122, allocations: 28 kB / 1.131 GB, free: 9.262 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001826/0.5124, allocations: 357.9 kB / 1.131 GB, free: 8.906 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003084/0.5155, allocations: 1.35 MB / 1.133 GB, free: 7.555 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003291/0.5188, allocations: 1.624 MB / 1.134 GB, free: 5.836 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003229/0.5221, allocations: 1.454 MB / 1.136 GB, free: 4.379 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.5221, allocations: 0 / 1.136 GB, free: 4.379 MB / 0.8887 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01067/0.5328, allocations: 4.477 MB / 1.14 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.5328, allocations: 8 kB / 1.14 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/0.5328, allocations: 8 kB / 1.14 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005031/0.5379, allocations: 1.424 MB / 1.142 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002046/0.54, allocations: 451.2 kB / 1.142 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02645/0.5664, allocations: 24.52 MB / 1.166 GB, free: 3.652 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002449/0.5689, allocations: 311.6 kB / 1.166 GB, free: 3.348 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001739/0.5691, allocations: 67.97 kB / 1.166 GB, free: 3.281 MB / 0.92 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 (linear and non-linear blocks): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(2,100.0%) 4,(1,100.0%) 1,(2,100.0%) 4,(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 9,(3,100.0%) 9,(1,100.0%) 1,(3,100.0%) 9,(2,100.0%) 4,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000906/0.57, allocations: 440.2 kB / 1.167 GB, free: 2.844 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000272/0.5703, allocations: 162.1 kB / 1.167 GB, free: 2.684 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01102/0.5813, allocations: 4.492 MB / 1.171 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/0.5814, allocations: 12 kB / 1.171 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.85e-05/0.5814, allocations: 16 kB / 1.171 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.5814, allocations: 3.984 kB / 1.171 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01459/0.596, allocations: 6.806 MB / 1.178 GB, free: 7.137 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/0.5961, allocations: 4 kB / 1.178 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00165/0.5977, allocations: 399.6 kB / 1.178 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004618/0.6024, allocations: 1.302 MB / 1.18 GB, free: 5.398 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002783/0.6027, allocations: 39.97 kB / 1.18 GB, free: 5.359 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02406/0.6268, allocations: 23.49 MB / 1.203 GB, free: 12.13 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.6268, allocations: 3.938 kB / 1.203 GB, free: 12.12 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01025/0.6371, allocations: 4.228 MB / 1.207 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001137/0.6383, allocations: 455 kB / 1.207 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002498/0.6385, allocations: 27.98 kB / 1.207 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001719/0.6402, allocations: 319.4 kB / 1.207 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005312/0.6408, allocations: 132.7 kB / 1.208 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001208/0.6409, allocations: 47.97 kB / 1.208 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001151/0.6421, allocations: 0.7408 MB / 1.208 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.01e-07/0.6421, allocations: 0 / 1.208 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.002304/0.6444, allocations: 0.5742 MB / 1.209 GB, free: 5.504 MB / 0.9669 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 (linear and non-linear blocks): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(3,100.0%) 9,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 7,(2,100.0%) 4,(3,100.0%) 9,(2,100.0%) 4,(3,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003082/0.6447, allocations: 135.1 kB / 1.209 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.01077/0.6555, allocations: 5.151 MB / 1.214 GB, free: 48 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.6555, allocations: 0 / 1.214 GB, free: 48 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.006825/0.6624, allocations: 3.508 MB / 1.217 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00275/0.6652, allocations: 0.5162 MB / 1.218 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008477/0.6737, allocations: 4.52 MB / 1.222 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001267/0.675, allocations: 1.473 MB / 1.224 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001846/0.6768, allocations: 429.6 kB / 1.224 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003941/0.6772, allocations: 115.4 kB / 1.224 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of SimCode: time 1.202e-06/0.6772, allocations: 3.938 kB / 1.224 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of Templates: time 0.6959/1.373, allocations: 36.14 MB / 1.26 GB, free: 170.2 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