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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001153/0.001153, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009786/0.009786, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.471/1.471, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.905/2.905, allocations: 462.6 MB / 0.7364 GB, free: 256 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003767, allocations: 8.656 kB / 0.9028 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3528, allocations: 159.6 MB / 1.059 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.02933/0.3822, allocations: 13.44 MB / 1.072 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02561/0.4078, allocations: 9.279 MB / 1.081 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001967/0.4098, allocations: 47.69 kB / 1.081 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001458/0.4113, allocations: 277.8 kB / 1.081 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.007698/0.419, allocations: 1.399 MB / 1.083 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003755/0.4228, allocations: 0.7007 MB / 1.083 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.00647/0.4293, allocations: 3.171 MB / 1.086 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005168/0.4345, allocations: 1.977 MB / 1.088 GB, free: 7.035 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00233/0.4369, allocations: 0.8713 MB / 1.089 GB, free: 6.16 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002184/0.4391, allocations: 1.058 MB / 1.09 GB, free: 5.098 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0005011/0.4396, allocations: 72 kB / 1.09 GB, free: 5.027 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002481/0.4421, allocations: 0.8577 MB / 1.091 GB, free: 4.168 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001047/0.4431, allocations: 0.5061 MB / 1.092 GB, free: 3.66 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001963/0.4451, allocations: 0.8486 MB / 1.092 GB, free: 2.801 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.004426/0.4496, allocations: 2.662 MB / 1.095 GB, free: 132 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.4496, allocations: 0 / 1.095 GB, free: 132 kB / 0.8419 GB Notification: Performance of FrontEnd: time 2.505e-06/0.4496, allocations: 0 / 1.095 GB, free: 132 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.459e-05/0.4496, allocations: 0 / 1.095 GB, free: 132 kB / 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.003817/0.4534, allocations: 1.808 MB / 1.097 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.4535, allocations: 12.03 kB / 1.097 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01199/0.4655, allocations: 2.148 MB / 1.099 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002876/0.4684, allocations: 1.201 MB / 1.1 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.811e-05/0.4685, allocations: 90.73 kB / 1.1 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003561/0.4689, allocations: 124 kB / 1.1 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006353/0.4752, allocations: 2.71 MB / 1.103 GB, free: 7.773 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.245e-05/0.4753, allocations: 7.938 kB / 1.103 GB, free: 7.766 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001788/0.4755, allocations: 51.98 kB / 1.103 GB, free: 7.715 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006638/0.4762, allocations: 182.1 kB / 1.103 GB, free: 7.535 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008035/0.4842, allocations: 2.842 MB / 1.106 GB, free: 4.684 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01591/0.5002, allocations: 10.56 MB / 1.116 GB, free: 9.535 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007331/0.5075, allocations: 2.571 MB / 1.119 GB, free: 6.906 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003451/0.511, allocations: 1.307 MB / 1.12 GB, free: 5.594 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 7.628e-05/0.5111, allocations: 12.94 kB / 1.12 GB, free: 5.582 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.357e-05/0.5112, allocations: 43.56 kB / 1.12 GB, free: 5.531 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=89): time 2.936e-06/0.5112, allocations: 0 / 1.12 GB, free: 5.531 MB / 0.8731 GB Notification: Performance of matching and sorting (n=131): time 0.04837/0.5596, allocations: 13.46 MB / 1.133 GB, free: 7.848 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.2e-05/0.5597, allocations: 64.72 kB / 1.133 GB, free: 7.773 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001711/0.5614, allocations: 1.121 MB / 1.134 GB, free: 6.637 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0002482/0.5617, allocations: 49.7 kB / 1.134 GB, free: 6.582 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005988/0.5623, allocations: 0.7156 MB / 1.135 GB, free: 5.859 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005054/0.5628, allocations: 453.4 kB / 1.136 GB, free: 5.41 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000207/0.563, allocations: 105.7 kB / 1.136 GB, free: 5.301 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001977/0.5632, allocations: 365.9 kB / 1.136 GB, free: 4.938 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003582/0.5668, allocations: 1.358 MB / 1.137 GB, free: 3.578 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003882/0.5707, allocations: 1.62 MB / 1.139 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007317/0.578, allocations: 3.034 MB / 1.142 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.5781, allocations: 4 kB / 1.142 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01215/0.5902, allocations: 4.489 MB / 1.146 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.188e-05/0.5903, allocations: 8 kB / 1.146 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.5903, allocations: 4 kB / 1.146 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005426/0.5958, allocations: 1.428 MB / 1.148 GB, free: 8.703 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002284/0.5981, allocations: 451.2 kB / 1.148 GB, free: 8.262 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02638/0.6245, allocations: 24.57 MB / 1.172 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002783/0.6273, allocations: 311.5 kB / 1.172 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000179/0.6275, allocations: 64.22 kB / 1.172 GB, free: 13.58 MB / 0.9356 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.0008752/0.6284, allocations: 443 kB / 1.173 GB, free: 13.14 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003041/0.6287, allocations: 162.1 kB / 1.173 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0125/0.6412, allocations: 4.496 MB / 1.177 GB, free: 8.43 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.806e-05/0.6413, allocations: 12 kB / 1.177 GB, free: 8.418 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.563e-05/0.6413, allocations: 12 kB / 1.177 GB, free: 8.406 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.33e-05/0.6413, allocations: 7.969 kB / 1.177 GB, free: 8.398 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01598/0.6573, allocations: 6.836 MB / 1.184 GB, free: 1.395 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.6574, allocations: 4.188 kB / 1.184 GB, free: 1.391 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001945/0.6593, allocations: 391.7 kB / 1.184 GB, free: 1.008 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004836/0.6642, allocations: 1.306 MB / 1.186 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001687/0.6644, allocations: 39.95 kB / 1.186 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02445/0.6888, allocations: 23.53 MB / 1.209 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.6889, allocations: 0 / 1.209 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01179/0.7007, allocations: 4.255 MB / 1.213 GB, free: 2 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.7018, allocations: 455 kB / 1.213 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002752/0.7021, allocations: 24 kB / 1.213 GB, free: 1.512 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002192/0.7043, allocations: 319.5 kB / 1.214 GB, free: 1.199 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000429/0.7047, allocations: 128.7 kB / 1.214 GB, free: 1.074 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001313/0.7048, allocations: 51.97 kB / 1.214 GB, free: 1.023 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.00102/0.7059, allocations: 0.7487 MB / 1.215 GB, free: 280 kB / 0.9669 GB Notification: Performance of sort global known variables: time 2.7e-07/0.7059, allocations: 0 / 1.215 GB, free: 280 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001944/0.7078, allocations: 0.5704 MB / 1.215 GB, free: 15.7 MB / 0.9825 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.0003057/0.7081, allocations: 144.3 kB / 1.215 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.01168/0.7198, allocations: 5.162 MB / 1.22 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/0.7199, allocations: 0 / 1.22 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.007312/0.7272, allocations: 3.503 MB / 1.224 GB, free: 6.547 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003318/0.7305, allocations: 0.513 MB / 1.224 GB, free: 6.035 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009242/0.7398, allocations: 4.694 MB / 1.229 GB, free: 1.297 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001269/0.7411, allocations: 1.473 MB / 1.23 GB, free: 15.79 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001713/0.7428, allocations: 429.6 kB / 1.231 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003843/0.7432, allocations: 111.4 kB / 1.231 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of SimCode: time 6.31e-07/0.7432, allocations: 0 / 1.231 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of Templates: time 0.6153/1.358, allocations: 37.04 MB / 1.267 GB, free: 168.8 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