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.001126/0.001126, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001403/0.001403, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.618/1.618, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.857/2.857, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004032/0.0004033, allocations: 9.531 kB / 0.9021 GB, free: 36.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3667/0.3671, allocations: 159.6 MB / 1.058 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02235/0.3895, allocations: 21.25 MB / 1.079 GB, free: 8 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01047/0.4, allocations: 6.202 MB / 1.085 GB, free: 9.789 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001836/0.4019, allocations: 79.56 kB / 1.085 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001416/0.4033, allocations: 460.5 kB / 1.085 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003722/0.407, allocations: 1.548 MB / 1.087 GB, free: 7.703 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002597/0.4097, allocations: 0.9085 MB / 1.088 GB, free: 6.797 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.008177/0.4179, allocations: 8.209 MB / 1.096 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01091/0.4288, allocations: 7.101 MB / 1.103 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003731/0.4325, allocations: 2.148 MB / 1.105 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004996/0.4376, allocations: 3.123 MB / 1.108 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001435/0.439, allocations: 244 kB / 1.108 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003116/0.4421, allocations: 0.5814 MB / 1.109 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.004384/0.4466, allocations: 2.108 MB / 1.111 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.002096/0.4487, allocations: 0.8472 MB / 1.112 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01012/0.4588, allocations: 7.002 MB / 1.118 GB, free: 7.312 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 1.365e-05/0.4589, allocations: 8 kB / 1.118 GB, free: 7.305 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.245e-06/0.4589, allocations: 3.938 kB / 1.118 GB, free: 7.301 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002146/0.4591, allocations: 0 / 1.118 GB, free: 7.301 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: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.01102/0.4701, allocations: 3.609 MB / 1.122 GB, free: 3.625 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 6.674e-05/0.4702, allocations: 15.97 kB / 1.122 GB, free: 3.609 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01405/0.4843, allocations: 1.672 MB / 1.124 GB, free: 1.93 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008221/0.4925, allocations: 2.52 MB / 1.126 GB, free: 15.35 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004808/0.4931, allocations: 279.2 kB / 1.126 GB, free: 15.08 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001304/0.4944, allocations: 355.9 kB / 1.127 GB, free: 14.73 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01402/0.5084, allocations: 7.451 MB / 1.134 GB, free: 7.016 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.668e-05/0.5086, allocations: 23.77 kB / 1.134 GB, free: 6.992 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004285/0.509, allocations: 159.9 kB / 1.134 GB, free: 6.836 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006185/0.5096, allocations: 491.3 kB / 1.135 GB, free: 6.355 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00985/0.5195, allocations: 5.678 MB / 1.14 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03654/0.5561, allocations: 31.67 MB / 1.171 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00276/0.5589, allocations: 2.086 MB / 1.173 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002879/0.5618, allocations: 2.167 MB / 1.175 GB, free: 9.965 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001415/0.5619, allocations: 17.31 kB / 1.175 GB, free: 9.949 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.562, allocations: 43.88 kB / 1.175 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=146): time 3.988e-06/0.562, allocations: 0 / 1.175 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of matching and sorting (n=251): time 1.099/1.661, allocations: 75.25 MB / 1.249 GB, free: 171.3 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/1.661, allocations: 77.25 kB / 1.249 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002624/1.663, allocations: 1.653 MB / 1.25 GB, free: 171 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005377/1.664, allocations: 72.66 kB / 1.25 GB, free: 171 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001135/1.665, allocations: 1.743 MB / 1.252 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001062/1.666, allocations: 0.8547 MB / 1.253 GB, free: 170.1 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002397/1.666, allocations: 51.56 kB / 1.253 GB, free: 170.1 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001802/1.666, allocations: 414 kB / 1.253 GB, free: 169.8 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003991/1.67, allocations: 2.721 MB / 1.256 GB, free: 169.8 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00419/1.675, allocations: 3.322 MB / 1.259 GB, free: 169.1 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004563/1.679, allocations: 3.057 MB / 1.262 GB, free: 169.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.932e-05/1.679, allocations: 7.562 kB / 1.262 GB, free: 169.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03398/1.713, allocations: 14.64 MB / 1.277 GB, free: 166.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.436e-05/1.713, allocations: 15 kB / 1.277 GB, free: 166.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.584e-05/1.713, allocations: 16.62 kB / 1.277 GB, free: 166.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02666/1.74, allocations: 9.25 MB / 1.286 GB, free: 164 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/1.741, allocations: 297.2 kB / 1.286 GB, free: 163.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06143/1.803, allocations: 47.06 MB / 1.332 GB, free: 127.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002979/1.806, allocations: 227.7 kB / 1.332 GB, free: 127 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003077/1.806, allocations: 96 kB / 1.332 GB, free: 126.9 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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(19,68.1%) 19,(19,54.6%) 19,(12,50.0%) 18,(12,50.0%) 18,(12,52.8%) 10,(12,53.5%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002928/1.809, allocations: 1.583 MB / 1.334 GB, free: 125.3 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000583/1.81, allocations: 245.1 kB / 1.334 GB, free: 125.1 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02644/1.836, allocations: 14.72 MB / 1.348 GB, free: 110.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.446e-05/1.836, allocations: 24 kB / 1.348 GB, free: 110.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001381/1.836, allocations: 49.12 kB / 1.348 GB, free: 110.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.442e-05/1.836, allocations: 11.95 kB / 1.348 GB, free: 110.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03492/1.871, allocations: 20.47 MB / 1.368 GB, free: 89.62 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.995e-05/1.871, allocations: 11.95 kB / 1.368 GB, free: 89.61 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007296/1.872, allocations: 167.7 kB / 1.369 GB, free: 89.45 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02527/1.897, allocations: 9.001 MB / 1.377 GB, free: 80.42 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007344/1.898, allocations: 48.94 kB / 1.377 GB, free: 80.37 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05873/1.957, allocations: 46.69 MB / 1.423 GB, free: 32.87 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/1.957, allocations: 8 kB / 1.423 GB, free: 32.86 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0254/1.982, allocations: 14.33 MB / 1.437 GB, free: 18.39 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00224/1.985, allocations: 0.8454 MB / 1.438 GB, free: 17.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005434/1.985, allocations: 53.08 kB / 1.438 GB, free: 17.47 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001766/1.987, allocations: 211.7 kB / 1.438 GB, free: 17.27 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001225/1.988, allocations: 237.5 kB / 1.438 GB, free: 17.03 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001984/1.988, allocations: 71.38 kB / 1.438 GB, free: 16.96 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001364/1.99, allocations: 1.11 MB / 1.44 GB, free: 15.83 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8.12e-07/1.99, allocations: 0 / 1.44 GB, free: 15.83 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005114/1.995, allocations: 1.617 MB / 1.441 GB, free: 14.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(12,53.5%) 10,(12,50.0%) 18,(19,64.8%) 19,(12,53.5%) 10,(12,50.0%) 18,(19,54.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004499/1.995, allocations: 160.4 kB / 1.441 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01819/2.014, allocations: 10.33 MB / 1.451 GB, free: 3.664 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/2.014, allocations: 4 kB / 1.451 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01557/2.029, allocations: 7.146 MB / 1.458 GB, free: 12.45 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003302/2.033, allocations: 0.5159 MB / 1.459 GB, free: 11.93 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01685/2.049, allocations: 10.2 MB / 1.469 GB, free: 1.656 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003913/2.053, allocations: 3.22 MB / 1.472 GB, free: 14.4 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.001365/2.055, allocations: 399.3 kB / 1.472 GB, free: 14.01 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00025/2.055, allocations: 99.44 kB / 1.472 GB, free: 13.91 MB / 1.029 GB Notification: Performance of SimCode: time 1.502e-06/2.055, allocations: 0 / 1.472 GB, free: 13.91 MB / 1.029 GB Notification: Performance of Templates: time 0.1419/2.197, allocations: 84.4 MB / 1.555 GB, free: 9.77 MB / 1.107 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