Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.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.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008499/0.0008499, allocations: 90.75 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.0009375/0.0009375, 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.531/1.531, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.967/2.967, allocations: 462.6 MB / 0.736 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004415/0.0004415, allocations: 10.16 kB / 0.9021 GB, free: 36.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4435/0.444, allocations: 159.6 MB / 1.058 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid): time 0.01238/0.4564, allocations: 10.71 MB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.008255/0.4647, allocations: 5.001 MB / 1.073 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001219/0.4659, allocations: 31.88 kB / 1.073 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.467, allocations: 290 kB / 1.074 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001395/0.4684, allocations: 0.5093 MB / 1.074 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001529/0.4699, allocations: 468.6 kB / 1.075 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.003136/0.4731, allocations: 2.79 MB / 1.077 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005404/0.4785, allocations: 3.624 MB / 1.081 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001534/0.48, allocations: 0.724 MB / 1.082 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001417/0.4815, allocations: 1.012 MB / 1.083 GB, free: 12 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001807/0.4816, allocations: 96 kB / 1.083 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001102/0.4828, allocations: 299.7 kB / 1.083 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0008866/0.4837, allocations: 0.7209 MB / 1.084 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004604/0.4841, allocations: 348.9 kB / 1.084 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003064/0.4872, allocations: 3.035 MB / 1.087 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.842e-06/0.4872, allocations: 0 / 1.087 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.573e-06/0.4872, allocations: 0 / 1.087 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.3e-05/0.4873, allocations: 0 / 1.087 GB, free: 7.5 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: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.00317/0.4904, allocations: 1.644 MB / 1.089 GB, free: 5.801 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.4905, allocations: 8.031 kB / 1.089 GB, free: 5.793 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00226/0.4928, allocations: 481.5 kB / 1.089 GB, free: 5.32 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001934/0.4947, allocations: 1.131 MB / 1.09 GB, free: 4.148 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.796e-05/0.4948, allocations: 115.1 kB / 1.09 GB, free: 4.035 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000252/0.4951, allocations: 152 kB / 1.09 GB, free: 3.887 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004409/0.4995, allocations: 2.739 MB / 1.093 GB, free: 1.082 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.211e-05/0.4996, allocations: 7.906 kB / 1.093 GB, free: 1.074 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001685/0.4997, allocations: 60 kB / 1.093 GB, free: 1.016 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003319/0.5001, allocations: 170.9 kB / 1.093 GB, free: 0.8477 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003743/0.5038, allocations: 2.291 MB / 1.096 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01198/0.5158, allocations: 10.55 MB / 1.106 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009119/0.5168, allocations: 0.5686 MB / 1.106 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005571/0.5173, allocations: 388.6 kB / 1.107 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001147/0.5175, allocations: 89.09 kB / 1.107 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.5175, allocations: 46.48 kB / 1.107 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=36): time 2.514e-06/0.5175, allocations: 3.938 kB / 1.107 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of matching and sorting (n=52): time 0.01776/0.5353, allocations: 6.265 MB / 1.113 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.5354, allocations: 93.42 kB / 1.113 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.5367, allocations: 0.8906 MB / 1.114 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.264e-05/0.5368, allocations: 37.64 kB / 1.114 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005728/0.5374, allocations: 0.7616 MB / 1.115 GB, free: 9.832 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/0.5376, allocations: 193.3 kB / 1.115 GB, free: 9.641 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-05/0.5377, allocations: 16 kB / 1.115 GB, free: 9.625 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000204/0.5379, allocations: 390.8 kB / 1.115 GB, free: 9.234 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001078/0.539, allocations: 0.6343 MB / 1.116 GB, free: 8.598 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.5403, allocations: 1.007 MB / 1.117 GB, free: 7.422 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/0.5417, allocations: 0.8179 MB / 1.118 GB, free: 6.605 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.535e-05/0.5417, allocations: 4 kB / 1.118 GB, free: 6.602 MB / 0.8731 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.0084/0.5501, allocations: 3.202 MB / 1.121 GB, free: 3.379 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004028/0.5505, allocations: 431 kB / 1.121 GB, free: 2.793 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.675e-05/0.5506, allocations: 19.98 kB / 1.121 GB, free: 2.773 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006855/0.5574, allocations: 1.86 MB / 1.123 GB, free: 0.8984 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008961/0.5584, allocations: 219.6 kB / 1.123 GB, free: 0.6836 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01371/0.5721, allocations: 10.22 MB / 1.133 GB, free: 5.934 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/0.5736, allocations: 179.6 kB / 1.133 GB, free: 5.758 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001964/0.5738, allocations: 43.98 kB / 1.134 GB, free: 5.715 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.5738, allocations: 4 kB / 1.134 GB, free: 5.711 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006572/0.5804, allocations: 2.618 MB / 1.136 GB, free: 3.082 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.374e-05/0.5804, allocations: 12 kB / 1.136 GB, free: 3.07 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004455/0.5849, allocations: 1.207 MB / 1.137 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009624/0.5859, allocations: 255.5 kB / 1.138 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007116/0.593, allocations: 5.54 MB / 1.143 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.5942, allocations: 147.9 kB / 1.143 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/0.5944, allocations: 47.92 kB / 1.143 GB, free: 11.61 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (99): * Single equations (assignments): 95 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.001446/0.5958, allocations: 0.8364 MB / 1.144 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000248/0.5961, allocations: 82.95 kB / 1.144 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007204/0.6033, allocations: 2.692 MB / 1.147 GB, free: 7.957 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.6033, allocations: 4 kB / 1.147 GB, free: 7.953 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.6033, allocations: 0 / 1.147 GB, free: 7.953 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.6034, allocations: 7.984 kB / 1.147 GB, free: 7.945 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0105/0.6139, allocations: 4.628 MB / 1.151 GB, free: 3.199 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.6139, allocations: 0 / 1.151 GB, free: 3.199 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000375/0.6143, allocations: 104.1 kB / 1.151 GB, free: 3.098 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005999/0.6203, allocations: 1.704 MB / 1.153 GB, free: 1.379 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-05/0.6204, allocations: 16 kB / 1.153 GB, free: 1.363 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01177/0.6322, allocations: 9.758 MB / 1.162 GB, free: 7.066 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.6322, allocations: 8.016 kB / 1.162 GB, free: 7.059 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007091/0.6393, allocations: 2.64 MB / 1.165 GB, free: 4.363 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007028/0.64, allocations: 292 kB / 1.165 GB, free: 4.059 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002431/0.6403, allocations: 12 kB / 1.165 GB, free: 4.047 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008357/0.6411, allocations: 131.8 kB / 1.165 GB, free: 3.918 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002286/0.6414, allocations: 55.83 kB / 1.166 GB, free: 3.863 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.183e-05/0.6415, allocations: 16 kB / 1.166 GB, free: 3.848 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001008/0.6425, allocations: 0.6356 MB / 1.166 GB, free: 3.219 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.844e-06/0.6425, allocations: 4 kB / 1.166 GB, free: 3.215 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002554/0.645, allocations: 0.5976 MB / 1.167 GB, free: 2.617 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (42): * Single equations (assignments): 38 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002758/0.6453, allocations: 127.2 kB / 1.167 GB, free: 2.484 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.005304/0.6506, allocations: 3.235 MB / 1.17 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/0.6507, allocations: 0.75 kB / 1.17 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.002068/0.6528, allocations: 1.275 MB / 1.171 GB, free: 13.85 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/0.6543, allocations: 226.4 kB / 1.171 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005903/0.6602, allocations: 3.555 MB / 1.175 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001806/0.662, allocations: 1.626 MB / 1.177 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.001417/0.6634, allocations: 486.3 kB / 1.177 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001972/0.6637, allocations: 63.42 kB / 1.177 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of SimCode: time 1.152e-06/0.6637, allocations: 0 / 1.177 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of Templates: time 0.03879/0.7025, allocations: 23.43 MB / 1.2 GB, free: 0.5352 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches