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.001302/0.001302, allocations: 104.6 kB / 16.27 MB, free: 6.414 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.0012/0.0012, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.375/1.375, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.665/2.665, allocations: 482.4 MB / 0.7553 GB, free: 7.016 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 67.61 kB / 0.9245 GB, free: 16 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8102/0.8121, allocations: 162.2 MB / 1.083 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02868/0.8408, allocations: 23.41 MB / 1.106 GB, free: 1.707 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0137/0.8546, allocations: 6.484 MB / 1.112 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00292/0.8575, allocations: 99.56 kB / 1.112 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00468/0.8622, allocations: 1.49 MB / 1.114 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005686/0.8679, allocations: 1.823 MB / 1.115 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004513/0.8725, allocations: 1.47 MB / 1.117 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01007/0.8825, allocations: 6.911 MB / 1.124 GB, free: 7.441 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01259/0.8952, allocations: 6.992 MB / 1.13 GB, free: 4.641 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006381/0.9016, allocations: 2.83 MB / 1.133 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006903/0.9085, allocations: 3.478 MB / 1.137 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.002192/0.9107, allocations: 0.5271 MB / 1.137 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004497/0.9152, allocations: 1.176 MB / 1.138 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.005173/0.9204, allocations: 2.461 MB / 1.141 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.007272/0.9277, allocations: 2.537 MB / 1.143 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01363/0.9414, allocations: 8.47 MB / 1.151 GB, free: 7.59 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.9414, allocations: 0 / 1.151 GB, free: 7.59 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.843e-06/0.9414, allocations: 0 / 1.151 GB, free: 7.59 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0003069/0.9417, allocations: 1.188 kB / 1.151 GB, free: 7.59 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.01564/0.9574, allocations: 4.425 MB / 1.156 GB, free: 4.125 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.9574, allocations: 8.031 kB / 1.156 GB, free: 4.117 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01014/0.9676, allocations: 1.685 MB / 1.157 GB, free: 2.426 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006742/0.9744, allocations: 2.571 MB / 1.16 GB, free: 15.8 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003008/0.9747, allocations: 271.7 kB / 1.16 GB, free: 15.54 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001869/0.9766, allocations: 364.2 kB / 1.161 GB, free: 15.18 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01883/0.9954, allocations: 7.487 MB / 1.168 GB, free: 7.43 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000164/0.9956, allocations: 19.81 kB / 1.168 GB, free: 7.41 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001595/0.9972, allocations: 155.9 kB / 1.168 GB, free: 7.258 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007277/0.998, allocations: 487.3 kB / 1.168 GB, free: 6.781 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01258/1.011, allocations: 5.701 MB / 1.174 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04332/1.054, allocations: 31.71 MB / 1.205 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003212/1.057, allocations: 2.082 MB / 1.207 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003362/1.061, allocations: 2.182 MB / 1.209 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001977/1.061, allocations: 13.31 kB / 1.209 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.175e-05/1.061, allocations: 59.8 kB / 1.209 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=146): time 3.005e-06/1.061, allocations: 0 / 1.209 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of matching and sorting (n=251): time 0.3139/1.375, allocations: 76.99 MB / 1.284 GB, free: 13.09 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.271e-05/1.375, allocations: 81.34 kB / 1.285 GB, free: 13 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003343/1.378, allocations: 1.677 MB / 1.286 GB, free: 11.28 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0005101/1.379, allocations: 69.7 kB / 1.286 GB, free: 11.21 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001575/1.38, allocations: 1.743 MB / 1.288 GB, free: 9.441 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.001255/1.382, allocations: 0.851 MB / 1.289 GB, free: 8.578 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001471/1.383, allocations: 481.2 kB / 1.289 GB, free: 8.102 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001386/1.383, allocations: 301.1 kB / 1.29 GB, free: 7.805 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004392/1.388, allocations: 2.738 MB / 1.292 GB, free: 5.062 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005049/1.393, allocations: 3.32 MB / 1.295 GB, free: 1.496 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009859/1.403, allocations: 6.401 MB / 1.302 GB, free: 10.85 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-05/1.403, allocations: 8 kB / 1.302 GB, free: 10.84 MB / 1.029 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03476/1.437, allocations: 14.67 MB / 1.316 GB, free: 12.12 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.548e-05/1.437, allocations: 12 kB / 1.316 GB, free: 12.11 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.455e-05/1.437, allocations: 16 kB / 1.316 GB, free: 12.09 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03067/1.468, allocations: 9.299 MB / 1.325 GB, free: 2.77 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/1.47, allocations: 307.4 kB / 1.325 GB, free: 2.469 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08968/1.559, allocations: 52.38 MB / 1.377 GB, free: 13.2 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003554/1.563, allocations: 223.7 kB / 1.377 GB, free: 12.98 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000632/1.563, allocations: 96 kB / 1.377 GB, free: 12.89 MB / 1.107 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.004233/1.568, allocations: 1.59 MB / 1.378 GB, free: 11.29 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009397/1.569, allocations: 245 kB / 1.379 GB, free: 11.04 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03575/1.604, allocations: 14.75 MB / 1.393 GB, free: 12.23 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.568e-05/1.604, allocations: 24 kB / 1.393 GB, free: 12.21 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001671/1.605, allocations: 44 kB / 1.393 GB, free: 12.17 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.409e-05/1.605, allocations: 11.95 kB / 1.393 GB, free: 12.16 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04671/1.651, allocations: 20.51 MB / 1.413 GB, free: 7.438 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.399e-05/1.652, allocations: 8 kB / 1.413 GB, free: 7.43 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008179/1.652, allocations: 160.6 kB / 1.413 GB, free: 7.273 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0306/1.683, allocations: 9.063 MB / 1.422 GB, free: 14.18 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005377/1.684, allocations: 48 kB / 1.422 GB, free: 14.13 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0878/1.771, allocations: 51.96 MB / 1.473 GB, free: 9.289 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.377e-05/1.771, allocations: 15.98 kB / 1.473 GB, free: 9.273 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03409/1.806, allocations: 14.38 MB / 1.487 GB, free: 10.75 MB / 1.217 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002939/1.808, allocations: 0.8416 MB / 1.488 GB, free: 9.891 MB / 1.217 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001195/1.81, allocations: 55.98 kB / 1.488 GB, free: 9.836 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002906/1.813, allocations: 199.7 kB / 1.488 GB, free: 9.641 MB / 1.217 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001408/1.814, allocations: 249.4 kB / 1.488 GB, free: 9.398 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003087/1.814, allocations: 64 kB / 1.488 GB, free: 9.336 MB / 1.217 GB Notification: Performance of sorting global known variables: time 0.002072/1.816, allocations: 1.125 MB / 1.489 GB, free: 8.188 MB / 1.217 GB Notification: Performance of sort global known variables: time 5.01e-07/1.816, allocations: 4 kB / 1.489 GB, free: 8.184 MB / 1.217 GB Notification: Performance of remove unused functions: time 0.00578/1.822, allocations: 1.609 MB / 1.491 GB, free: 6.574 MB / 1.217 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.0005131/1.823, allocations: 159.6 kB / 1.491 GB, free: 6.41 MB / 1.217 GB Notification: Performance of simCode: created initialization part: time 0.02607/1.849, allocations: 11.35 MB / 1.502 GB, free: 10.99 MB / 1.232 GB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/1.849, allocations: 0 / 1.502 GB, free: 10.99 MB / 1.232 GB Notification: Performance of simCode: created simulation system equations: time 0.01923/1.868, allocations: 7.308 MB / 1.509 GB, free: 3.609 MB / 1.232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004017/1.872, allocations: 0.5562 MB / 1.51 GB, free: 3.066 MB / 1.232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02064/1.893, allocations: 9.402 MB / 1.519 GB, free: 9.574 MB / 1.248 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005225/1.898, allocations: 3.302 MB / 1.522 GB, free: 6.234 MB / 1.248 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000474/1.899, allocations: 107.4 kB / 1.522 GB, free: 6.129 MB / 1.248 GB Notification: Performance of SimCode: time 1.383e-06/1.899, allocations: 0 / 1.522 GB, free: 6.129 MB / 1.248 GB Notification: Performance of Templates: time 0.6419/2.541, allocations: 187.6 MB / 1.706 GB, free: 287.4 MB / 1.264 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=400 -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