Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005755/0.005755, allocations: 110.3 kB / 15.74 MB, free: 6.449 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.001259/0.001259, allocations: 196 kB / 16.67 MB, free: 6.355 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.608/2.608, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 62.77 kB / 0.9509 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3696/0.3708, allocations: 140.4 MB / 1.088 GB, free: 1.484 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.02924/0.4001, allocations: 20.25 MB / 1.108 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01312/0.4133, allocations: 6.46 MB / 1.114 GB, free: 6.684 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002931/0.4163, allocations: 83.62 kB / 1.114 GB, free: 6.602 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.006639/0.423, allocations: 2.238 MB / 1.116 GB, free: 4.359 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.004609/0.4276, allocations: 1.189 MB / 1.117 GB, free: 3.164 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.004585/0.4322, allocations: 1.278 MB / 1.119 GB, free: 1.887 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.00755/0.4398, allocations: 4.85 MB / 1.123 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009366/0.4492, allocations: 5.587 MB / 1.129 GB, free: 7.367 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00435/0.4536, allocations: 2.091 MB / 1.131 GB, free: 5.27 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004423/0.458, allocations: 2.344 MB / 1.133 GB, free: 2.918 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.00154/0.4596, allocations: 428 kB / 1.134 GB, free: 2.5 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003107/0.4627, allocations: 0.9948 MB / 1.135 GB, free: 1.504 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.00297/0.4657, allocations: 1.672 MB / 1.136 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.004732/0.4704, allocations: 1.91 MB / 1.138 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.007912/0.4784, allocations: 6.521 MB / 1.144 GB, free: 7.371 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.4784, allocations: 0 / 1.144 GB, free: 7.371 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.225e-06/0.4784, allocations: 0 / 1.144 GB, free: 7.371 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0001647/0.4786, allocations: 0 / 1.144 GB, free: 7.371 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.008325/0.4869, allocations: 3.459 MB / 1.148 GB, free: 3.848 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.487, allocations: 12.03 kB / 1.148 GB, free: 3.836 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003374/0.4904, allocations: 0.6371 MB / 1.148 GB, free: 3.195 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004481/0.4949, allocations: 2.049 MB / 1.15 GB, free: 1.086 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/0.4951, allocations: 218.3 kB / 1.151 GB, free: 0.8711 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005204/0.4956, allocations: 300.2 kB / 1.151 GB, free: 0.5781 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00838/0.504, allocations: 4.886 MB / 1.156 GB, free: 11.5 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.399e-05/0.5041, allocations: 11.88 kB / 1.156 GB, free: 11.48 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003165/0.5044, allocations: 132 kB / 1.156 GB, free: 11.36 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004624/0.5049, allocations: 233.7 kB / 1.156 GB, free: 11.12 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005972/0.5108, allocations: 3.746 MB / 1.16 GB, free: 7.367 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02483/0.5357, allocations: 21.4 MB / 1.181 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001792/0.5375, allocations: 1.31 MB / 1.182 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001439/0.539, allocations: 1.054 MB / 1.183 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 5.699e-05/0.5391, allocations: 13 kB / 1.183 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.702e-05/0.5391, allocations: 51.48 kB / 1.183 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=107): time 3.526e-06/0.5391, allocations: 3.938 kB / 1.183 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of matching and sorting (n=138): time 0.02353/0.5627, allocations: 8.657 MB / 1.191 GB, free: 4.801 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.5627, allocations: 64.72 kB / 1.192 GB, free: 4.727 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001554/0.5643, allocations: 1.126 MB / 1.193 GB, free: 3.594 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 9.88e-05/0.5644, allocations: 45.7 kB / 1.193 GB, free: 3.543 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008598/0.5653, allocations: 1.308 MB / 1.194 GB, free: 2.219 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004143/0.5657, allocations: 477.1 kB / 1.194 GB, free: 1.746 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004328/0.5661, allocations: 287.3 kB / 1.195 GB, free: 1.461 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.5663, allocations: 313.1 kB / 1.195 GB, free: 1.152 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.5675, allocations: 0.9135 MB / 1.196 GB, free: 244 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001501/0.569, allocations: 1.326 MB / 1.197 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002952/0.572, allocations: 2.426 MB / 1.2 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.572, allocations: 4 kB / 1.2 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006458/0.5785, allocations: 3.467 MB / 1.203 GB, free: 8.648 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.5785, allocations: 8 kB / 1.203 GB, free: 8.641 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/0.5786, allocations: 12 kB / 1.203 GB, free: 8.629 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003235/0.5818, allocations: 1.187 MB / 1.204 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009218/0.5827, allocations: 259.6 kB / 1.204 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01742/0.6002, allocations: 13.83 MB / 1.218 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001758/0.602, allocations: 87.97 kB / 1.218 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/0.6021, allocations: 64 kB / 1.218 GB, free: 8.785 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003104/0.6052, allocations: 1.114 MB / 1.219 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005504/0.6058, allocations: 166 kB / 1.219 GB, free: 7.496 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006651/0.6125, allocations: 3.169 MB / 1.222 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.6125, allocations: 12 kB / 1.222 GB, free: 4.289 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.465e-05/0.6125, allocations: 16.31 kB / 1.222 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/0.6126, allocations: 3.984 kB / 1.222 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01129/0.6239, allocations: 6.252 MB / 1.228 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/0.6239, allocations: 4 kB / 1.228 GB, free: 13.87 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005735/0.6245, allocations: 147.8 kB / 1.229 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002831/0.6273, allocations: 1.079 MB / 1.23 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.913e-05/0.6274, allocations: 28 kB / 1.23 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01657/0.644, allocations: 13.53 MB / 1.243 GB, free: 14.66 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.794e-06/0.6441, allocations: 8 kB / 1.243 GB, free: 14.65 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005776/0.6499, allocations: 3.146 MB / 1.246 GB, free: 11.42 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001353/0.6513, allocations: 427.1 kB / 1.246 GB, free: 10.98 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/0.6515, allocations: 35.94 kB / 1.246 GB, free: 10.95 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008733/0.6524, allocations: 83.89 kB / 1.247 GB, free: 10.87 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005317/0.6529, allocations: 128.7 kB / 1.247 GB, free: 10.74 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.373e-05/0.653, allocations: 39.94 kB / 1.247 GB, free: 10.7 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001291/0.6543, allocations: 0.7671 MB / 1.247 GB, free: 9.93 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6543, allocations: 0 / 1.247 GB, free: 9.93 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002945/0.6573, allocations: 0.6602 MB / 1.248 GB, free: 9.27 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003652/0.6577, allocations: 153 kB / 1.248 GB, free: 9.113 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.00522/0.6629, allocations: 3.134 MB / 1.251 GB, free: 5.945 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.6629, allocations: 4 kB / 1.251 GB, free: 5.941 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.003094/0.666, allocations: 1.947 MB / 1.253 GB, free: 3.953 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00264/0.6687, allocations: 0.4914 MB / 1.254 GB, free: 3.477 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7108/1.379, allocations: 5.366 MB / 1.259 GB, free: 155.2 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003395/1.383, allocations: 2.336 MB / 1.261 GB, free: 154.4 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001358/1.384, allocations: 358.2 kB / 1.262 GB, free: 154.4 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002672/1.385, allocations: 91.03 kB / 1.262 GB, free: 154.4 MB / 1.014 GB Notification: Performance of SimCode: time 1.112e-06/1.385, allocations: 0 / 1.262 GB, free: 154.4 MB / 1.014 GB Notification: Performance of Templates: time 0.07167/1.456, allocations: 33.2 MB / 1.294 GB, free: 146.2 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches