Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.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.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 108 kB / 15.6 MB, free: 132 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.001121/0.001121, allocations: 191.5 kB / 16.53 MB, free: 6.391 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.405/1.405, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.874/2.874, allocations: 472.6 MB / 0.7451 GB, free: 4.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 64.69 kB / 0.912 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3187, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02614/0.3449, allocations: 23.43 MB / 1.091 GB, free: 2.918 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01143/0.3563, allocations: 6.48 MB / 1.097 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00209/0.3585, allocations: 99.5 kB / 1.097 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.004198/0.3627, allocations: 1.5 MB / 1.099 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004716/0.3674, allocations: 1.82 MB / 1.101 GB, free: 8.988 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003652/0.3711, allocations: 1.454 MB / 1.102 GB, free: 7.535 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.007307/0.3784, allocations: 6.916 MB / 1.109 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009499/0.3879, allocations: 6.996 MB / 1.116 GB, free: 9.508 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004828/0.3928, allocations: 2.836 MB / 1.118 GB, free: 6.664 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005607/0.3984, allocations: 3.474 MB / 1.122 GB, free: 3.18 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0017/0.4001, allocations: 0.5273 MB / 1.122 GB, free: 2.652 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003126/0.4033, allocations: 1.178 MB / 1.124 GB, free: 1.473 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.003175/0.4065, allocations: 2.46 MB / 1.126 GB, free: 15.01 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.004045/0.4105, allocations: 2.532 MB / 1.128 GB, free: 12.46 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.009127/0.4197, allocations: 8.464 MB / 1.137 GB, free: 3.977 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4197, allocations: 0 / 1.137 GB, free: 3.977 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.753e-06/0.4197, allocations: 0 / 1.137 GB, free: 3.977 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0002017/0.4199, allocations: 0 / 1.137 GB, free: 3.977 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.009632/0.4296, allocations: 4.431 MB / 1.141 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.4296, allocations: 8.031 kB / 1.141 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008844/0.4385, allocations: 1.681 MB / 1.143 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00543/0.4439, allocations: 2.567 MB / 1.145 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002543/0.4442, allocations: 275.7 kB / 1.145 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00122/0.4454, allocations: 364.2 kB / 1.146 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01514/0.4606, allocations: 7.495 MB / 1.153 GB, free: 2.773 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.509e-05/0.4607, allocations: 15.88 kB / 1.153 GB, free: 2.758 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004895/0.4612, allocations: 159.9 kB / 1.153 GB, free: 2.602 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005894/0.4618, allocations: 479.3 kB / 1.154 GB, free: 2.133 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01057/0.4724, allocations: 5.701 MB / 1.159 GB, free: 12.42 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03841/0.5108, allocations: 31.73 MB / 1.19 GB, free: 9.926 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002962/0.5138, allocations: 2.091 MB / 1.192 GB, free: 7.828 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002856/0.5167, allocations: 2.178 MB / 1.194 GB, free: 5.648 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001201/0.5168, allocations: 17.31 kB / 1.194 GB, free: 5.629 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/0.5169, allocations: 47.81 kB / 1.195 GB, free: 5.574 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=146): time 3.166e-06/0.5169, allocations: 0 / 1.195 GB, free: 5.574 MB / 0.9512 GB Notification: Performance of matching and sorting (n=251): time 0.9057/1.423, allocations: 77 MB / 1.27 GB, free: 168.4 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.08e-05/1.423, allocations: 77.91 kB / 1.27 GB, free: 168.4 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002473/1.425, allocations: 1.667 MB / 1.271 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004158/1.426, allocations: 62.55 kB / 1.271 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008801/1.426, allocations: 1.754 MB / 1.273 GB, free: 166.3 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009007/1.427, allocations: 0.8543 MB / 1.274 GB, free: 165.7 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001343/1.429, allocations: 484 kB / 1.274 GB, free: 165.5 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.157e-05/1.429, allocations: 302.3 kB / 1.275 GB, free: 165.2 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003744/1.433, allocations: 2.728 MB / 1.277 GB, free: 163.8 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004113/1.437, allocations: 3.332 MB / 1.281 GB, free: 161.6 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008422/1.445, allocations: 6.393 MB / 1.287 GB, free: 157.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.478e-05/1.445, allocations: 10.47 kB / 1.287 GB, free: 157.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03078/1.476, allocations: 14.68 MB / 1.301 GB, free: 149.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.705e-05/1.476, allocations: 15.75 kB / 1.301 GB, free: 149.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.952e-05/1.476, allocations: 15.34 kB / 1.301 GB, free: 149.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02682/1.503, allocations: 9.296 MB / 1.31 GB, free: 141.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/1.504, allocations: 299.5 kB / 1.311 GB, free: 141.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06842/1.573, allocations: 52.39 MB / 1.362 GB, free: 87.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003236/1.576, allocations: 223.7 kB / 1.362 GB, free: 87.76 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005037/1.576, allocations: 99.98 kB / 1.362 GB, free: 87.66 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (157): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(19,19,64.8%), (19,19,60.9%), (12,18,50.0%), (12,18,50.0%), (12,10,52.8%), (12,10,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002861/1.579, allocations: 1.578 MB / 1.364 GB, free: 86.07 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007884/1.58, allocations: 241.1 kB / 1.364 GB, free: 85.83 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02922/1.609, allocations: 14.76 MB / 1.378 GB, free: 71.01 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-05/1.609, allocations: 27.94 kB / 1.378 GB, free: 70.99 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001755/1.61, allocations: 44.44 kB / 1.378 GB, free: 70.95 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.192e-05/1.61, allocations: 15.95 kB / 1.378 GB, free: 70.93 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03743/1.647, allocations: 20.52 MB / 1.398 GB, free: 50.26 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.969e-05/1.647, allocations: 8 kB / 1.398 GB, free: 50.25 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007501/1.648, allocations: 163.7 kB / 1.399 GB, free: 50.09 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02677/1.675, allocations: 9.068 MB / 1.407 GB, free: 41 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007355/1.675, allocations: 48 kB / 1.408 GB, free: 40.95 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07133/1.747, allocations: 51.94 MB / 1.458 GB, free: 4.172 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.291e-05/1.747, allocations: 11.94 kB / 1.458 GB, free: 4.16 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03337/1.78, allocations: 14.36 MB / 1.472 GB, free: 5.656 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002134/1.782, allocations: 0.8454 MB / 1.473 GB, free: 4.789 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008068/1.783, allocations: 48 kB / 1.473 GB, free: 4.742 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002647/1.786, allocations: 211.7 kB / 1.473 GB, free: 4.535 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001631/1.787, allocations: 242.6 kB / 1.474 GB, free: 4.301 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004342/1.788, allocations: 64 kB / 1.474 GB, free: 4.238 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.00289/1.791, allocations: 1.129 MB / 1.475 GB, free: 3.086 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.4e-07/1.791, allocations: 0 / 1.475 GB, free: 3.086 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.006561/1.797, allocations: 1.613 MB / 1.476 GB, free: 1.473 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (80): * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(12,10,53.5%), (12,18,50.0%), (19,19,64.8%), (12,10,53.5%), (12,18,50.0%), (19,19,54.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005486/1.798, allocations: 168.8 kB / 1.476 GB, free: 1.301 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.02651/1.824, allocations: 11.33 MB / 1.488 GB, free: 5.918 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/1.825, allocations: 224 / 1.488 GB, free: 5.918 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.01833/1.843, allocations: 7.311 MB / 1.495 GB, free: 14.56 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003874/1.847, allocations: 0.5483 MB / 1.495 GB, free: 14.03 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01952/1.866, allocations: 8.776 MB / 1.504 GB, free: 5.211 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005101/1.871, allocations: 3.227 MB / 1.507 GB, free: 1.945 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001355/1.873, allocations: 396 kB / 1.507 GB, free: 1.559 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003365/1.873, allocations: 95.44 kB / 1.507 GB, free: 1.465 MB / 1.061 GB Notification: Performance of SimCode: time 2.515e-06/1.873, allocations: 0 / 1.507 GB, free: 1.465 MB / 1.061 GB Notification: Performance of Templates: time 0.143/2.016, allocations: 91.86 MB / 1.597 GB, free: 5.898 MB / 1.154 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches