Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001786/0.001786, allocations: 105 kB / 15.99 MB, free: 6.352 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.001998/0.001998, allocations: 195.6 kB / 16.91 MB, free: 6.184 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.45/1.45, allocations: 222.9 MB / 240.6 MB, free: 13.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.584/2.584, allocations: 437.1 MB / 0.7107 GB, free: 4.645 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 67.59 kB / 0.8694 GB, free: 2.469 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.281, allocations: 151.6 MB / 1.017 GB, free: 10.92 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02782/0.3089, allocations: 23.23 MB / 1.04 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01158/0.3205, allocations: 6.441 MB / 1.046 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001758/0.3223, allocations: 83.56 kB / 1.047 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.003813/0.3261, allocations: 1.358 MB / 1.048 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.004281/0.3304, allocations: 1.7 MB / 1.05 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.003477/0.3339, allocations: 1.335 MB / 1.051 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.008978/0.3429, allocations: 6.947 MB / 1.058 GB, free: 1.691 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.013/0.3559, allocations: 8.133 MB / 1.066 GB, free: 9.473 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004892/0.3609, allocations: 2.882 MB / 1.068 GB, free: 6.582 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005705/0.3666, allocations: 3.696 MB / 1.072 GB, free: 2.875 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.001368/0.368, allocations: 0.5273 MB / 1.073 GB, free: 2.348 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003128/0.3711, allocations: 1.17 MB / 1.074 GB, free: 1.176 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.4583/0.8295, allocations: 2.47 MB / 1.076 GB, free: 28.29 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.006727/0.8362, allocations: 2.531 MB / 1.079 GB, free: 28.04 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01146/0.8477, allocations: 7.23 MB / 1.086 GB, free: 27.78 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.8478, allocations: 1.625 kB / 1.086 GB, free: 27.78 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.834e-06/0.8478, allocations: 0 / 1.086 GB, free: 27.78 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0003067/0.8481, allocations: 0.875 kB / 1.086 GB, free: 27.78 MB / 0.8419 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.01901/0.8671, allocations: 4.425 MB / 1.09 GB, free: 26.02 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/0.8672, allocations: 9.281 kB / 1.09 GB, free: 26.02 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01114/0.8784, allocations: 1.691 MB / 1.092 GB, free: 25.79 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007175/0.8856, allocations: 2.571 MB / 1.094 GB, free: 25.2 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003496/0.886, allocations: 279.8 kB / 1.094 GB, free: 25.19 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002645/0.8886, allocations: 358.1 kB / 1.095 GB, free: 25.19 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02235/0.911, allocations: 7.487 MB / 1.102 GB, free: 24.12 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001639/0.9112, allocations: 21.69 kB / 1.102 GB, free: 24.11 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00153/0.9127, allocations: 161.8 kB / 1.102 GB, free: 24 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007215/0.9135, allocations: 485.5 kB / 1.103 GB, free: 23.94 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01294/0.9264, allocations: 5.698 MB / 1.108 GB, free: 22.09 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03748/0.9639, allocations: 31.72 MB / 1.139 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003371/0.9673, allocations: 2.095 MB / 1.141 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003461/0.9708, allocations: 2.17 MB / 1.143 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002137/0.9711, allocations: 16.34 kB / 1.143 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.092e-05/0.9711, allocations: 48.97 kB / 1.143 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=146): time 3.948e-06/0.9711, allocations: 0 / 1.143 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of matching and sorting (n=251): time 0.2991/1.27, allocations: 77 MB / 1.219 GB, free: 10.36 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.642e-05/1.27, allocations: 81.41 kB / 1.219 GB, free: 10.27 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002839/1.273, allocations: 1.666 MB / 1.22 GB, free: 8.559 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0006726/1.274, allocations: 65.7 kB / 1.22 GB, free: 8.488 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001475/1.275, allocations: 1.746 MB / 1.222 GB, free: 6.727 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.001248/1.277, allocations: 0.85 MB / 1.223 GB, free: 5.883 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001197/1.278, allocations: 489.2 kB / 1.223 GB, free: 5.398 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001485/1.278, allocations: 305.1 kB / 1.224 GB, free: 5.098 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004394/1.282, allocations: 2.726 MB / 1.226 GB, free: 2.367 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005065/1.287, allocations: 3.334 MB / 1.23 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01019/1.298, allocations: 6.395 MB / 1.236 GB, free: 8.223 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.01e-05/1.298, allocations: 8 kB / 1.236 GB, free: 8.215 MB / 0.9356 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03594/1.334, allocations: 14.67 MB / 1.25 GB, free: 9.793 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/1.334, allocations: 12 kB / 1.25 GB, free: 9.781 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.613e-05/1.334, allocations: 19.98 kB / 1.25 GB, free: 9.762 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.032/1.366, allocations: 9.309 MB / 1.259 GB, free: 440 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/1.367, allocations: 297.3 kB / 1.26 GB, free: 164 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09073/1.458, allocations: 52.41 MB / 1.311 GB, free: 10.99 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003373/1.461, allocations: 219.7 kB / 1.311 GB, free: 10.78 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004741/1.462, allocations: 96 kB / 1.311 GB, free: 10.68 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 {(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.003884/1.466, allocations: 1.581 MB / 1.313 GB, free: 9.113 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007944/1.467, allocations: 253 kB / 1.313 GB, free: 8.863 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0352/1.502, allocations: 14.75 MB / 1.327 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.79e-05/1.502, allocations: 24 kB / 1.327 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001678/1.502, allocations: 44 kB / 1.327 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.309e-05/1.502, allocations: 11.95 kB / 1.327 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05002/1.552, allocations: 20.52 MB / 1.347 GB, free: 5.73 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.51e-05/1.552, allocations: 7.984 kB / 1.347 GB, free: 5.723 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008531/1.553, allocations: 162 kB / 1.348 GB, free: 5.574 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03146/1.585, allocations: 9.056 MB / 1.356 GB, free: 12.49 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007461/1.585, allocations: 48 kB / 1.356 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08538/1.671, allocations: 51.95 MB / 1.407 GB, free: 7.715 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.298e-06/1.671, allocations: 11.56 kB / 1.407 GB, free: 7.707 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03372/1.705, allocations: 14.37 MB / 1.421 GB, free: 9.238 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002239/1.707, allocations: 0.8416 MB / 1.422 GB, free: 8.375 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005863/1.707, allocations: 51.94 kB / 1.422 GB, free: 8.324 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001985/1.709, allocations: 215.7 kB / 1.422 GB, free: 8.113 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001245/1.711, allocations: 237.5 kB / 1.423 GB, free: 7.883 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002422/1.711, allocations: 68 kB / 1.423 GB, free: 7.816 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.0017/1.713, allocations: 1.121 MB / 1.424 GB, free: 6.672 MB / 1.123 GB Notification: Performance of sort global known variables: time 3.6e-07/1.713, allocations: 0 / 1.424 GB, free: 6.672 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.005047/1.718, allocations: 1.621 MB / 1.425 GB, free: 5.051 MB / 1.123 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.0004547/1.718, allocations: 159.5 kB / 1.425 GB, free: 4.887 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.0252/1.743, allocations: 11.32 MB / 1.436 GB, free: 9.504 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/1.743, allocations: 4.062 kB / 1.436 GB, free: 9.5 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.01857/1.762, allocations: 7.321 MB / 1.444 GB, free: 2.117 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003792/1.766, allocations: 0.5526 MB / 1.444 GB, free: 1.574 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01998/1.786, allocations: 11.25 MB / 1.455 GB, free: 6.254 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005227/1.791, allocations: 3.294 MB / 1.458 GB, free: 2.922 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000516/1.792, allocations: 111.4 kB / 1.458 GB, free: 2.812 MB / 1.154 GB Notification: Performance of SimCode: time 7.61e-07/1.792, allocations: 0 / 1.458 GB, free: 2.812 MB / 1.154 GB Notification: Performance of Templates: time 0.7086/2.5, allocations: 187.6 MB / 1.642 GB, free: 369 MB / 1.232 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches