Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.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.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL,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") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001553/0.001554, allocations: 191.2 kB / 16.13 MB, free: 6.648 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.378/1.378, allocations: 222.9 MB / 239.8 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.695/2.695, allocations: 461.8 MB / 0.7342 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 69.2 kB / 0.8984 GB, free: 37.26 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3117, allocations: 157.4 MB / 1.052 GB, free: 8.836 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL): time 0.02499/0.3368, allocations: 22.42 MB / 1.074 GB, free: 2.336 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01153/0.3483, allocations: 6.245 MB / 1.08 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003102/0.3515, allocations: 83.5 kB / 1.08 GB, free: 12 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004522/0.356, allocations: 1.412 MB / 1.082 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.00467/0.3607, allocations: 1.545 MB / 1.083 GB, free: 9.031 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003693/0.3644, allocations: 1.224 MB / 1.084 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.009256/0.3737, allocations: 8.857 MB / 1.093 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01136/0.3851, allocations: 6.734 MB / 1.099 GB, free: 8.125 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006107/0.3913, allocations: 2.051 MB / 1.101 GB, free: 6.066 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006247/0.3976, allocations: 2.96 MB / 1.104 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001692/0.3993, allocations: 316 kB / 1.105 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003769/0.4031, allocations: 1.135 MB / 1.106 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.003712/0.4068, allocations: 1.894 MB / 1.108 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.005402/0.4123, allocations: 2.003 MB / 1.11 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01128/0.4236, allocations: 7.19 MB / 1.117 GB, free: 6.531 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 9.027e-06/0.4236, allocations: 0 / 1.117 GB, free: 6.531 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.324e-06/0.4236, allocations: 0 / 1.117 GB, free: 6.531 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0003255/0.424, allocations: 0 / 1.117 GB, free: 6.531 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: 913 * Number of variables: 913 Notification: Performance of Generate backend data structure: time 0.013/0.437, allocations: 3.816 MB / 1.12 GB, free: 2.652 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/0.4371, allocations: 12.02 kB / 1.12 GB, free: 2.641 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007134/0.4442, allocations: 1.206 MB / 1.122 GB, free: 1.43 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006319/0.4506, allocations: 2.211 MB / 1.124 GB, free: 15.16 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004199/0.451, allocations: 250.2 kB / 1.124 GB, free: 14.91 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002269/0.4533, allocations: 323.8 kB / 1.124 GB, free: 14.6 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01754/0.4709, allocations: 6.216 MB / 1.13 GB, free: 8.125 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000168/0.4711, allocations: 15.92 kB / 1.13 GB, free: 8.109 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001246/0.4724, allocations: 139.9 kB / 1.13 GB, free: 7.973 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006157/0.473, allocations: 406.3 kB / 1.131 GB, free: 7.574 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01036/0.4834, allocations: 4.658 MB / 1.135 GB, free: 2.906 MB / 0.8887 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03939/0.5228, allocations: 29.14 MB / 1.164 GB, free: 3.055 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002417/0.5253, allocations: 1.426 MB / 1.165 GB, free: 1.617 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00219/0.5275, allocations: 1.487 MB / 1.167 GB, free: 132 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001797/0.5277, allocations: 9 kB / 1.167 GB, free: 124 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.5278, allocations: 43.56 kB / 1.167 GB, free: 72 kB / 0.92 GB Notification: Performance of pre-optimization done (n=110): time 3.116e-06/0.5278, allocations: 0 / 1.167 GB, free: 72 kB / 0.92 GB Notification: Performance of matching and sorting (n=179): time 0.1396/0.6674, allocations: 37.24 MB / 1.203 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/0.6676, allocations: 69.41 kB / 1.203 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002895/0.6705, allocations: 1.427 MB / 1.205 GB, free: 9.25 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0003716/0.6709, allocations: 57.7 kB / 1.205 GB, free: 9.188 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.672, allocations: 1.531 MB / 1.206 GB, free: 7.637 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.000857/0.6729, allocations: 0.6123 MB / 1.207 GB, free: 7.016 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001049/0.674, allocations: 383.3 kB / 1.207 GB, free: 6.633 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.6741, allocations: 305.1 kB / 1.207 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00277/0.6769, allocations: 1.788 MB / 1.209 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003191/0.6801, allocations: 2.35 MB / 1.211 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006148/0.6862, allocations: 4.383 MB / 1.216 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-05/0.6863, allocations: 4 kB / 1.216 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.01846/0.7048, allocations: 8.571 MB / 1.224 GB, free: 4.691 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.62e-05/0.7049, allocations: 13.25 kB / 1.224 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.939e-05/0.7049, allocations: 16 kB / 1.224 GB, free: 4.664 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01584/0.7207, allocations: 4.64 MB / 1.229 GB, free: 8 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/0.7222, allocations: 303.5 kB / 1.229 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04779/0.77, allocations: 29.67 MB / 1.258 GB, free: 1.223 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002531/0.7726, allocations: 155.8 kB / 1.258 GB, free: 1.07 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005007/0.7731, allocations: 80 kB / 1.258 GB, free: 0.9922 MB / 1.014 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 {(11,13,90.1%), (11,13,91.7%), (6,12,100.0%), (6,12,100.0%), (6,6,100.0%), (6,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.6357/1.409, allocations: 1.331 MB / 1.259 GB, free: 190.2 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005576/1.409, allocations: 198.6 kB / 1.26 GB, free: 190.2 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01794/1.427, allocations: 8.441 MB / 1.268 GB, free: 189.9 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.146e-05/1.427, allocations: 18.97 kB / 1.268 GB, free: 189.9 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-05/1.427, allocations: 24.3 kB / 1.268 GB, free: 189.9 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-05/1.428, allocations: 8.203 kB / 1.268 GB, free: 189.9 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0255/1.453, allocations: 12.86 MB / 1.28 GB, free: 189 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.519e-05/1.453, allocations: 5.625 kB / 1.28 GB, free: 189 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00065/1.454, allocations: 162.2 kB / 1.281 GB, free: 189 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01345/1.467, allocations: 4.488 MB / 1.285 GB, free: 189 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000252/1.467, allocations: 41.69 kB / 1.285 GB, free: 189 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03624/1.504, allocations: 29.26 MB / 1.314 GB, free: 171.8 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/1.504, allocations: 12.5 kB / 1.314 GB, free: 171.8 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01374/1.517, allocations: 8.235 MB / 1.322 GB, free: 167 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/1.519, allocations: 0.6235 MB / 1.322 GB, free: 166.5 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003051/1.519, allocations: 32.91 kB / 1.322 GB, free: 166.5 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/1.52, allocations: 139.7 kB / 1.322 GB, free: 166.4 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007362/1.521, allocations: 177.5 kB / 1.323 GB, free: 166.3 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000136/1.521, allocations: 51.03 kB / 1.323 GB, free: 166.3 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001005/1.522, allocations: 0.9606 MB / 1.324 GB, free: 165.7 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.5e-07/1.522, allocations: 0 / 1.324 GB, free: 165.7 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002845/1.525, allocations: 1.117 MB / 1.325 GB, free: 164.6 MB / 1.014 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 {(6,6,100.0%), (6,12,100.0%), (11,13,91.7%), (6,6,100.0%), (6,12,100.0%), (11,13,91.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000258/1.525, allocations: 146.9 kB / 1.325 GB, free: 164.4 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.009603/1.535, allocations: 6.512 MB / 1.331 GB, free: 157.8 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/1.535, allocations: 0 / 1.331 GB, free: 157.8 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.007149/1.542, allocations: 4.364 MB / 1.335 GB, free: 153.4 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002199/1.544, allocations: 496.9 kB / 1.336 GB, free: 152.9 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009421/1.553, allocations: 8.433 MB / 1.344 GB, free: 144.5 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002413/1.556, allocations: 2.725 MB / 1.347 GB, free: 141.7 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001189/1.557, allocations: 387.8 kB / 1.347 GB, free: 141.3 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002239/1.557, allocations: 99.42 kB / 1.347 GB, free: 141.2 MB / 1.014 GB Notification: Performance of SimCode: time 8.12e-07/1.557, allocations: 0 / 1.347 GB, free: 141.2 MB / 1.014 GB Notification: Performance of Templates: time 0.07201/1.629, allocations: 58.83 MB / 1.405 GB, free: 82.7 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches