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 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.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.001124/0.001124, allocations: 100.1 kB / 15.88 MB, free: 12 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.001202/0.001202, allocations: 196.9 kB / 16.79 MB, free: 6.809 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.38/1.38, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.701/2.701, allocations: 461.9 MB / 0.7348 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001478, allocations: 69.12 kB / 0.8991 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.3372, allocations: 157.4 MB / 1.053 GB, free: 8.266 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02673/0.364, allocations: 23.23 MB / 1.075 GB, free: 0.9531 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01203/0.3761, allocations: 6.5 MB / 1.082 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002462/0.3786, allocations: 83.56 kB / 1.082 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004241/0.3829, allocations: 1.368 MB / 1.083 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004624/0.3875, allocations: 1.747 MB / 1.085 GB, free: 7.227 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00368/0.3912, allocations: 1.318 MB / 1.086 GB, free: 5.91 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01006/0.4013, allocations: 10.61 MB / 1.097 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01178/0.4131, allocations: 7.606 MB / 1.104 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004787/0.4179, allocations: 2.405 MB / 1.106 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006283/0.4242, allocations: 3.614 MB / 1.11 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001812/0.4261, allocations: 380 kB / 1.11 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003974/0.4301, allocations: 1.19 MB / 1.111 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.004017/0.4341, allocations: 2.319 MB / 1.114 GB, free: 9.66 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.005936/0.4401, allocations: 2.353 MB / 1.116 GB, free: 7.297 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.008207/0.4483, allocations: 7.191 MB / 1.123 GB, free: 92 kB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/0.4484, allocations: 0 / 1.123 GB, free: 92 kB / 0.8731 GB Notification: Performance of FrontEnd: time 1.513e-06/0.4484, allocations: 0 / 1.123 GB, free: 92 kB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002538/0.4486, allocations: 4 kB / 1.123 GB, free: 88 kB / 0.8731 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.01109/0.4597, allocations: 4.424 MB / 1.127 GB, free: 11.59 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.4598, allocations: 19.97 kB / 1.127 GB, free: 11.57 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00891/0.4687, allocations: 1.677 MB / 1.129 GB, free: 9.891 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005717/0.4745, allocations: 2.575 MB / 1.131 GB, free: 7.262 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002655/0.4748, allocations: 279.6 kB / 1.132 GB, free: 6.988 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001539/0.4763, allocations: 364.2 kB / 1.132 GB, free: 6.633 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01614/0.4925, allocations: 7.491 MB / 1.139 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001823/0.4927, allocations: 15.88 kB / 1.139 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001275/0.494, allocations: 159.9 kB / 1.14 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007022/0.4947, allocations: 487.3 kB / 1.14 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01159/0.5063, allocations: 5.689 MB / 1.146 GB, free: 8.531 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03634/0.5427, allocations: 31.71 MB / 1.177 GB, free: 6.043 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002905/0.5456, allocations: 2.095 MB / 1.179 GB, free: 3.938 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002897/0.5486, allocations: 2.178 MB / 1.181 GB, free: 1.758 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000204/0.5488, allocations: 13.31 kB / 1.181 GB, free: 1.742 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.5488, allocations: 43.88 kB / 1.181 GB, free: 1.691 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=146): time 3.065e-06/0.5488, allocations: 3.938 kB / 1.181 GB, free: 1.688 MB / 0.9356 GB Notification: Performance of matching and sorting (n=251): time 0.8721/1.421, allocations: 77.01 MB / 1.256 GB, free: 178.5 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.385e-05/1.421, allocations: 77.92 kB / 1.256 GB, free: 178.4 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00254/1.424, allocations: 1.666 MB / 1.258 GB, free: 178.2 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004271/1.424, allocations: 67.52 kB / 1.258 GB, free: 178.2 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0011/1.425, allocations: 1.745 MB / 1.259 GB, free: 177.4 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009032/1.426, allocations: 0.8575 MB / 1.26 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001125/1.427, allocations: 482.5 kB / 1.261 GB, free: 176.8 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.781e-05/1.427, allocations: 301.7 kB / 1.261 GB, free: 176.5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004559/1.432, allocations: 2.738 MB / 1.264 GB, free: 176.5 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005156/1.437, allocations: 3.326 MB / 1.267 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008714/1.446, allocations: 6.4 MB / 1.273 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.667e-05/1.446, allocations: 4.594 kB / 1.273 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03139/1.477, allocations: 14.68 MB / 1.288 GB, free: 165.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.776e-05/1.477, allocations: 16.88 kB / 1.288 GB, free: 165.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.866e-05/1.477, allocations: 17.06 kB / 1.288 GB, free: 165.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0266/1.504, allocations: 9.243 MB / 1.297 GB, free: 161 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/1.505, allocations: 296.4 kB / 1.297 GB, free: 161 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06048/1.566, allocations: 47.43 MB / 1.343 GB, free: 115.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002969/1.569, allocations: 222.6 kB / 1.343 GB, free: 115.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005181/1.569, allocations: 103.8 kB / 1.344 GB, free: 115.6 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.002723/1.572, allocations: 1.586 MB / 1.345 GB, free: 114 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000719/1.573, allocations: 241.1 kB / 1.345 GB, free: 113.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02818/1.601, allocations: 14.76 MB / 1.36 GB, free: 98.95 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.06e-05/1.601, allocations: 24 kB / 1.36 GB, free: 98.93 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001628/1.601, allocations: 44 kB / 1.36 GB, free: 98.88 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.668e-05/1.601, allocations: 11.95 kB / 1.36 GB, free: 98.87 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03855/1.64, allocations: 20.52 MB / 1.38 GB, free: 78.21 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.262e-05/1.64, allocations: 8 kB / 1.38 GB, free: 78.21 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006901/1.64, allocations: 159.7 kB / 1.38 GB, free: 78.05 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02642/1.667, allocations: 9.001 MB / 1.389 GB, free: 69.02 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005959/1.668, allocations: 48 kB / 1.389 GB, free: 68.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06382/1.731, allocations: 47.03 MB / 1.435 GB, free: 21.15 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.754e-06/1.731, allocations: 8 kB / 1.435 GB, free: 21.14 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02817/1.76, allocations: 14.36 MB / 1.449 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002057/1.762, allocations: 0.8455 MB / 1.45 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008684/1.763, allocations: 48 kB / 1.45 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002329/1.765, allocations: 215.7 kB / 1.45 GB, free: 5.52 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001408/1.766, allocations: 241.2 kB / 1.45 GB, free: 5.285 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002994/1.767, allocations: 68 kB / 1.45 GB, free: 5.219 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001807/1.769, allocations: 1.125 MB / 1.451 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6.31e-07/1.769, allocations: 0 / 1.451 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005166/1.774, allocations: 1.618 MB / 1.453 GB, free: 2.453 MB / 0.9981 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.0005399/1.774, allocations: 155.1 kB / 1.453 GB, free: 2.293 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02175/1.796, allocations: 10.54 MB / 1.463 GB, free: 7.703 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.642e-05/1.796, allocations: 4 kB / 1.463 GB, free: 7.699 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0171/1.813, allocations: 7.305 MB / 1.47 GB, free: 356 kB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004305/1.818, allocations: 0.5141 MB / 1.471 GB, free: 15.84 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02023/1.838, allocations: 11.25 MB / 1.482 GB, free: 4.539 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004904/1.843, allocations: 3.3 MB / 1.485 GB, free: 1.203 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000465/1.843, allocations: 111.4 kB / 1.485 GB, free: 1.094 MB / 1.029 GB Notification: Performance of SimCode: time 1.011e-06/1.843, allocations: 0 / 1.485 GB, free: 1.094 MB / 1.029 GB Notification: Performance of Templates: time 0.203/2.046, allocations: 187.6 MB / 1.668 GB, free: 5.379 MB / 1.217 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/jenkins1/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