Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.001414/0.001414, 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.001417/0.001417, allocations: 200 kB / 16.79 MB, free: 6.828 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.415/1.415, allocations: 222.9 MB / 240.5 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.793/2.793, allocations: 461.8 MB / 0.7348 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 64.25 kB / 0.899 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3023/0.3038, allocations: 157.4 MB / 1.053 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.0224/0.3262, allocations: 20.11 MB / 1.072 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01071/0.337, allocations: 6.449 MB / 1.079 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002001/0.339, allocations: 79.56 kB / 1.079 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.005458/0.3446, allocations: 2.076 MB / 1.081 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003382/0.348, allocations: 1.116 MB / 1.082 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003268/0.3512, allocations: 1.168 MB / 1.083 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.007192/0.3585, allocations: 6.975 MB / 1.09 GB, free: 2.219 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009653/0.3681, allocations: 6.164 MB / 1.096 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003262/0.3714, allocations: 1.779 MB / 1.098 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004082/0.3755, allocations: 2.391 MB / 1.1 GB, free: 7.809 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001218/0.3768, allocations: 296 kB / 1.1 GB, free: 7.52 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002994/0.3798, allocations: 1.03 MB / 1.101 GB, free: 6.488 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.002525/0.3823, allocations: 1.528 MB / 1.103 GB, free: 4.957 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.003724/0.3861, allocations: 1.758 MB / 1.104 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.006125/0.3922, allocations: 5.519 MB / 1.11 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.3922, allocations: 4 kB / 1.11 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3923, allocations: 0 / 1.11 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002175/0.3925, allocations: 0 / 1.11 GB, free: 13.66 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.008827/0.4013, allocations: 3.452 MB / 1.113 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.4014, allocations: 15.97 kB / 1.113 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004012/0.4054, allocations: 0.6332 MB / 1.114 GB, free: 9.488 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003816/0.4092, allocations: 1.932 MB / 1.116 GB, free: 7.496 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001887/0.4094, allocations: 226.3 kB / 1.116 GB, free: 7.273 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008288/0.4103, allocations: 296.2 kB / 1.116 GB, free: 6.984 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009277/0.4196, allocations: 4.886 MB / 1.121 GB, free: 1.898 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-05/0.4197, allocations: 15.88 kB / 1.121 GB, free: 1.883 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004911/0.4202, allocations: 124 kB / 1.121 GB, free: 1.762 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004319/0.4206, allocations: 233.7 kB / 1.121 GB, free: 1.531 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006488/0.4271, allocations: 3.754 MB / 1.125 GB, free: 13.77 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02258/0.4497, allocations: 21.57 MB / 1.146 GB, free: 6.199 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001838/0.4516, allocations: 1.308 MB / 1.147 GB, free: 4.875 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001473/0.4531, allocations: 1.049 MB / 1.148 GB, free: 3.828 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 7.822e-05/0.4532, allocations: 13 kB / 1.148 GB, free: 3.816 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.591e-05/0.4532, allocations: 55.5 kB / 1.148 GB, free: 3.754 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=107): time 3.096e-06/0.4532, allocations: 0 / 1.148 GB, free: 3.754 MB / 0.9044 GB Notification: Performance of matching and sorting (n=138): time 0.02429/0.4775, allocations: 8.645 MB / 1.157 GB, free: 11.05 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.4776, allocations: 64.72 kB / 1.157 GB, free: 10.97 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002023/0.4797, allocations: 1.13 MB / 1.158 GB, free: 9.836 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0002076/0.4799, allocations: 49.7 kB / 1.158 GB, free: 9.781 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009031/0.4808, allocations: 1.3 MB / 1.159 GB, free: 8.465 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004913/0.4813, allocations: 477.2 kB / 1.16 GB, free: 7.992 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006429/0.482, allocations: 295.2 kB / 1.16 GB, free: 7.699 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.4821, allocations: 309.1 kB / 1.16 GB, free: 7.395 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001375/0.4835, allocations: 0.9135 MB / 1.161 GB, free: 6.48 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001626/0.4851, allocations: 1.326 MB / 1.163 GB, free: 4.984 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003097/0.4882, allocations: 2.426 MB / 1.165 GB, free: 2.391 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.286e-05/0.4883, allocations: 4 kB / 1.165 GB, free: 2.387 MB / 0.92 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006188/0.4944, allocations: 3.464 MB / 1.168 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.404e-05/0.4945, allocations: 13.5 kB / 1.168 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.439e-05/0.4945, allocations: 12 kB / 1.168 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003287/0.4978, allocations: 1.178 MB / 1.169 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.4989, allocations: 259.5 kB / 1.17 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01751/0.5164, allocations: 12.72 MB / 1.182 GB, free: 328 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001909/0.5184, allocations: 91.97 kB / 1.182 GB, free: 236 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003553/0.5187, allocations: 67.98 kB / 1.182 GB, free: 168 kB / 0.9356 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.002523/0.5213, allocations: 1.118 MB / 1.183 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004938/0.5218, allocations: 162 kB / 1.184 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006168/0.528, allocations: 3.169 MB / 1.187 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.539e-05/0.528, allocations: 12 kB / 1.187 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.999e-05/0.528, allocations: 16 kB / 1.187 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.942e-05/0.5281, allocations: 15.91 kB / 1.187 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01193/0.54, allocations: 6.248 MB / 1.193 GB, free: 5.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/0.54, allocations: 4 kB / 1.193 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005813/0.5406, allocations: 147.8 kB / 1.193 GB, free: 5.102 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002931/0.5436, allocations: 1.067 MB / 1.194 GB, free: 4.027 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/0.5437, allocations: 32 kB / 1.194 GB, free: 3.996 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01547/0.5592, allocations: 12.41 MB / 1.206 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.5592, allocations: 7.938 kB / 1.206 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005504/0.5647, allocations: 3.158 MB / 1.209 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009093/0.5657, allocations: 423.1 kB / 1.21 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003888/0.5661, allocations: 31.91 kB / 1.21 GB, free: 3.473 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009671/0.5671, allocations: 87.81 kB / 1.21 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003783/0.5674, allocations: 124.7 kB / 1.21 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.5676, allocations: 40 kB / 1.21 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001247/0.5688, allocations: 0.7671 MB / 1.211 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5688, allocations: 0 / 1.211 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.002258/0.5711, allocations: 0.6602 MB / 1.211 GB, free: 1.797 MB / 0.9669 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.000272/0.5714, allocations: 143 kB / 1.211 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.005069/0.5764, allocations: 3.115 MB / 1.214 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.5765, allocations: 0.75 kB / 1.214 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.003108/0.5796, allocations: 1.943 MB / 1.216 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002634/0.5822, allocations: 471.9 kB / 1.217 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01379/0.5961, allocations: 7.173 MB / 1.224 GB, free: 4.789 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003852/0.6, allocations: 2.387 MB / 1.226 GB, free: 2.367 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004998/0.6005, allocations: 99.44 kB / 1.226 GB, free: 2.27 MB / 0.9825 GB Notification: Performance of SimCode: time 1.373e-06/0.6005, allocations: 0 / 1.226 GB, free: 2.27 MB / 0.9825 GB Notification: Performance of Templates: time 0.6187/1.219, allocations: 79.43 MB / 1.304 GB, free: 144.3 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches