Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008416/0.0008417, 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.0008964/0.0008966, 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.592/1.592, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.498/2.498, allocations: 390.9 MB / 0.666 GB, free: 2.492 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003703/0.0003705, allocations: 8 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7882/0.7886, allocations: 142.4 MB / 0.9545 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.0362/0.8249, allocations: 29.73 MB / 0.9835 GB, free: 1.199 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01822/0.8431, allocations: 9.746 MB / 0.993 GB, free: 7.988 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00403/0.8472, allocations: 131.2 kB / 0.9931 GB, free: 7.859 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002058/0.8493, allocations: 0.6162 MB / 0.9937 GB, free: 7.238 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.005353/0.8547, allocations: 1.462 MB / 0.9952 GB, free: 5.77 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004559/0.8592, allocations: 1.266 MB / 0.9964 GB, free: 4.504 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.01204/0.8713, allocations: 8.262 MB / 1.004 GB, free: 12.22 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02235/0.8937, allocations: 10.34 MB / 1.015 GB, free: 1.805 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006061/0.8999, allocations: 2.264 MB / 1.017 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006103/0.906, allocations: 2.893 MB / 1.02 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0008351/0.9068, allocations: 268 kB / 1.02 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003314/0.9102, allocations: 0.8388 MB / 1.021 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.002684/0.9129, allocations: 2.038 MB / 1.023 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.001516/0.9144, allocations: 0.9563 MB / 1.024 GB, free: 8.52 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.009578/0.924, allocations: 8.351 MB / 1.032 GB, free: 152 kB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.924, allocations: 4 kB / 1.032 GB, free: 148 kB / 0.7794 GB Notification: Performance of FrontEnd: time 3.266e-06/0.924, allocations: 0 / 1.032 GB, free: 148 kB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0003034/0.9243, allocations: 0 / 1.032 GB, free: 148 kB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.009654/0.934, allocations: 4.066 MB / 1.036 GB, free: 12.01 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.9341, allocations: 8.031 kB / 1.036 GB, free: 12 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006004/0.9401, allocations: 0.9542 MB / 1.037 GB, free: 11.04 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00725/0.9474, allocations: 2.8 MB / 1.039 GB, free: 8.18 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004046/0.9478, allocations: 349.3 kB / 1.04 GB, free: 7.836 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002237/0.9501, allocations: 467.8 kB / 1.04 GB, free: 7.379 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01612/0.9662, allocations: 7.628 MB / 1.048 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001241/0.9664, allocations: 27.77 kB / 1.048 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004712/0.9669, allocations: 207.9 kB / 1.048 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000324/0.9672, allocations: 313 kB / 1.048 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01072/0.9779, allocations: 5.675 MB / 1.054 GB, free: 9.172 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03818/1.016, allocations: 35.12 MB / 1.088 GB, free: 2.848 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00304/1.019, allocations: 2.143 MB / 1.09 GB, free: 0.5859 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001873/1.021, allocations: 1.262 MB / 1.091 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001169/1.021, allocations: 17.31 kB / 1.091 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/1.021, allocations: 47.88 kB / 1.091 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=133): time 3.026e-06/1.021, allocations: 0 / 1.091 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of matching and sorting (n=136): time 0.01418/1.036, allocations: 7.096 MB / 1.098 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/1.036, allocations: 64.72 kB / 1.098 GB, free: 7.816 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002515/1.038, allocations: 1.468 MB / 1.1 GB, free: 6.301 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001071/1.038, allocations: 45.7 kB / 1.1 GB, free: 6.25 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001417/1.04, allocations: 2.015 MB / 1.102 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005154/1.04, allocations: 481.1 kB / 1.102 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/1.04, allocations: 40 kB / 1.102 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001822/1.041, allocations: 381.8 kB / 1.103 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001367/1.042, allocations: 0.9135 MB / 1.104 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001868/1.044, allocations: 1.581 MB / 1.105 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001743/1.046, allocations: 1.181 MB / 1.106 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.582e-05/1.046, allocations: 11.94 kB / 1.106 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.006207/1.052, allocations: 3.495 MB / 1.11 GB, free: 11.76 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/1.052, allocations: 19.94 kB / 1.11 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-05/1.052, allocations: 20 kB / 1.11 GB, free: 11.72 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002451/1.054, allocations: 0.9043 MB / 1.111 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/1.056, allocations: 351.4 kB / 1.111 GB, free: 10.44 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01954/1.075, allocations: 21.19 MB / 1.132 GB, free: 3.652 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002273/1.077, allocations: 107.9 kB / 1.132 GB, free: 3.547 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004285/1.078, allocations: 83.94 kB / 1.132 GB, free: 3.465 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (185): * Single equations (assignments): 173 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 6,(2,100.0%) 6,(3,77.8%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003721/1.082, allocations: 1.623 MB / 1.133 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006859/1.082, allocations: 201.6 kB / 1.134 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005558/1.088, allocations: 2.971 MB / 1.136 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.857e-05/1.088, allocations: 16 kB / 1.137 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.841e-05/1.088, allocations: 11.95 kB / 1.137 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.587e-05/1.088, allocations: 7.969 kB / 1.137 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0123/1.1, allocations: 7.325 MB / 1.144 GB, free: 7.016 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/1.1, allocations: 4 kB / 1.144 GB, free: 7.012 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007734/1.101, allocations: 179.7 kB / 1.144 GB, free: 6.836 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002241/1.103, allocations: 0.826 MB / 1.145 GB, free: 5.973 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/1.103, allocations: 24 kB / 1.145 GB, free: 5.949 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0188/1.122, allocations: 20.29 MB / 1.164 GB, free: 56 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.7e-06/1.122, allocations: 8.125 kB / 1.165 GB, free: 48 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005278/1.128, allocations: 3.015 MB / 1.167 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001017/1.129, allocations: 470.5 kB / 1.168 GB, free: 12.44 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002474/1.129, allocations: 31.95 kB / 1.168 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007134/1.13, allocations: 67.91 kB / 1.168 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004093/1.13, allocations: 128.7 kB / 1.168 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.397e-05/1.13, allocations: 36.19 kB / 1.168 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001344/1.132, allocations: 0.96 MB / 1.169 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of sort global known variables: time 4.01e-07/1.132, allocations: 0 / 1.169 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002988/1.135, allocations: 0.7891 MB / 1.17 GB, free: 10.41 MB / 0.9356 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 (91): * Single equations (assignments): 79 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002658/1.135, allocations: 142.8 kB / 1.17 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.00574/1.141, allocations: 4.019 MB / 1.174 GB, free: 6.086 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/1.141, allocations: 1 kB / 1.174 GB, free: 6.086 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.003905/1.145, allocations: 2.744 MB / 1.177 GB, free: 3.184 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003474/1.148, allocations: 0.6557 MB / 1.177 GB, free: 2.531 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/1.163, allocations: 8.73 MB / 1.186 GB, free: 9.711 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003704/1.167, allocations: 3.109 MB / 1.189 GB, free: 6.57 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001598/1.168, allocations: 458 kB / 1.189 GB, free: 6.121 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003087/1.169, allocations: 123.4 kB / 1.189 GB, free: 6 MB / 0.9512 GB Notification: Performance of SimCode: time 8.92e-07/1.169, allocations: 0 / 1.189 GB, free: 6 MB / 0.9512 GB Notification: Performance of Templates: time 0.0657/1.234, allocations: 33.14 MB / 1.222 GB, free: 5.242 MB / 0.9825 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches