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.0009173/0.0009175, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007541/0.007542, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.439/1.439, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.832/2.832, allocations: 473.4 MB / 0.7469 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003685/0.0003684, allocations: 8.969 kB / 0.9158 GB, free: 33.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3523, allocations: 162.2 MB / 1.074 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01557/0.3679, allocations: 14.16 MB / 1.088 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01572/0.3836, allocations: 10.23 MB / 1.098 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001612/0.3853, allocations: 47.62 kB / 1.098 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001041/0.3864, allocations: 294 kB / 1.098 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005311/0.3917, allocations: 1.609 MB / 1.1 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001972/0.3937, allocations: 0.6857 MB / 1.101 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00476/0.3984, allocations: 3.405 MB / 1.104 GB, free: 9.016 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00385/0.4023, allocations: 1.985 MB / 1.106 GB, free: 6.969 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002211/0.4046, allocations: 1.324 MB / 1.107 GB, free: 5.641 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001787/0.4064, allocations: 1.078 MB / 1.108 GB, free: 4.559 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.000191/0.4066, allocations: 76 kB / 1.108 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001693/0.4083, allocations: 0.8578 MB / 1.109 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0005221/0.4088, allocations: 0.5022 MB / 1.11 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0009342/0.4097, allocations: 0.8524 MB / 1.11 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002866/0.4126, allocations: 2.674 MB / 1.113 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.4126, allocations: 0 / 1.113 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.043e-06/0.4127, allocations: 0 / 1.113 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 3.914e-05/0.4127, allocations: 0 / 1.113 GB, free: 15.57 MB / 0.8731 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.003675/0.4164, allocations: 1.839 MB / 1.115 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.4164, allocations: 8.031 kB / 1.115 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01233/0.4288, allocations: 2.171 MB / 1.117 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002815/0.4316, allocations: 1.213 MB / 1.118 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.036e-05/0.4317, allocations: 86.69 kB / 1.118 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002975/0.432, allocations: 124 kB / 1.118 GB, free: 10.02 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006023/0.4381, allocations: 2.69 MB / 1.121 GB, free: 7.18 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.231e-05/0.4382, allocations: 7.938 kB / 1.121 GB, free: 7.172 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000178/0.4383, allocations: 63.91 kB / 1.121 GB, free: 7.109 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006917/0.439, allocations: 190.1 kB / 1.121 GB, free: 6.922 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008576/0.4476, allocations: 2.846 MB / 1.124 GB, free: 4.066 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01549/0.4632, allocations: 10.56 MB / 1.134 GB, free: 8.93 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006974/0.4702, allocations: 2.387 MB / 1.137 GB, free: 6.508 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003485/0.4737, allocations: 1.307 MB / 1.138 GB, free: 5.199 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 8.86e-05/0.4738, allocations: 16.98 kB / 1.138 GB, free: 5.184 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/0.4739, allocations: 39.56 kB / 1.138 GB, free: 5.137 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=89): time 3.407e-06/0.4739, allocations: 4 kB / 1.138 GB, free: 5.133 MB / 0.8887 GB Notification: Performance of matching and sorting (n=153): time 0.06259/0.5365, allocations: 16.53 MB / 1.154 GB, free: 4.449 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.82e-05/0.5366, allocations: 68.72 kB / 1.154 GB, free: 4.367 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001701/0.5383, allocations: 1.172 MB / 1.155 GB, free: 3.184 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0002837/0.5386, allocations: 53.7 kB / 1.155 GB, free: 3.125 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005932/0.5392, allocations: 0.7397 MB / 1.156 GB, free: 2.379 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005444/0.5398, allocations: 0.5198 MB / 1.157 GB, free: 1.852 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002367/0.54, allocations: 117.7 kB / 1.157 GB, free: 1.73 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.5401, allocations: 309.1 kB / 1.157 GB, free: 1.426 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003721/0.5438, allocations: 1.526 MB / 1.158 GB, free: 15.9 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00384/0.5477, allocations: 1.799 MB / 1.16 GB, free: 14 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00767/0.5554, allocations: 3.412 MB / 1.164 GB, free: 10.5 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.5554, allocations: 11.88 kB / 1.164 GB, free: 10.48 MB / 0.92 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01422/0.5697, allocations: 5.315 MB / 1.169 GB, free: 5.129 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/0.5697, allocations: 8 kB / 1.169 GB, free: 5.121 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.942e-05/0.5698, allocations: 11.98 kB / 1.169 GB, free: 5.109 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007162/0.5769, allocations: 1.881 MB / 1.171 GB, free: 3.207 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002218/0.5792, allocations: 423.2 kB / 1.171 GB, free: 2.793 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02752/0.6067, allocations: 22.21 MB / 1.193 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002835/0.6096, allocations: 319.5 kB / 1.193 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001824/0.6098, allocations: 63.97 kB / 1.193 GB, free: 11.15 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.0008879/0.6107, allocations: 466.8 kB / 1.194 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000296/0.611, allocations: 173.9 kB / 1.194 GB, free: 10.51 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0143/0.6253, allocations: 5.359 MB / 1.199 GB, free: 5.105 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.02e-05/0.6253, allocations: 16 kB / 1.199 GB, free: 5.09 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.688e-05/0.6254, allocations: 20 kB / 1.199 GB, free: 5.07 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.609e-05/0.6254, allocations: 7.969 kB / 1.199 GB, free: 5.062 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01683/0.6422, allocations: 7.48 MB / 1.206 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.858e-06/0.6423, allocations: 4 kB / 1.206 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00176/0.6441, allocations: 359.7 kB / 1.207 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005996/0.6501, allocations: 1.706 MB / 1.208 GB, free: 11.37 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000141/0.6502, allocations: 51.89 kB / 1.208 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02532/0.6756, allocations: 21.37 MB / 1.229 GB, free: 4.883 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.6756, allocations: 7.969 kB / 1.229 GB, free: 4.875 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01257/0.6882, allocations: 4.932 MB / 1.234 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001407/0.6896, allocations: 498.9 kB / 1.235 GB, free: 15.35 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002362/0.6899, allocations: 28 kB / 1.235 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002165/0.692, allocations: 335.5 kB / 1.235 GB, free: 15 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006245/0.6927, allocations: 145 kB / 1.235 GB, free: 14.85 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/0.6928, allocations: 55.97 kB / 1.235 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001035/0.6939, allocations: 0.7899 MB / 1.236 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6939, allocations: 0 / 1.236 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002125/0.696, allocations: 0.6562 MB / 1.236 GB, free: 13.35 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.0003145/0.6963, allocations: 144.2 kB / 1.237 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01158/0.7079, allocations: 5.167 MB / 1.242 GB, free: 7.934 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.7079, allocations: 4.125 kB / 1.242 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.007846/0.7158, allocations: 3.378 MB / 1.245 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003231/0.7191, allocations: 0.514 MB / 1.245 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5782/1.297, allocations: 5.023 MB / 1.25 GB, free: 163.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001697/1.299, allocations: 1.567 MB / 1.252 GB, free: 162.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001944/1.301, allocations: 386.8 kB / 1.252 GB, free: 162.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004224/1.301, allocations: 109.9 kB / 1.252 GB, free: 162.3 MB / 0.9981 GB Notification: Performance of SimCode: time 9.82e-07/1.301, allocations: 0 / 1.252 GB, free: 162.3 MB / 0.9981 GB Notification: Performance of Templates: time 0.0814/1.383, allocations: 42.41 MB / 1.294 GB, free: 150.5 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