Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 108 kB / 15.61 MB, free: 152 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.001297/0.001297, allocations: 195 kB / 16.53 MB, free: 6.664 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.445/1.445, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.78/2.78, allocations: 472.6 MB / 0.7451 GB, free: 4.637 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 66.75 kB / 0.912 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3731/0.3744, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03857/0.413, allocations: 35.14 MB / 1.102 GB, free: 7.188 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01775/0.4308, allocations: 9.948 MB / 1.112 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004543/0.4354, allocations: 143.3 kB / 1.112 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.01001/0.4455, allocations: 3.802 MB / 1.116 GB, free: 9.258 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.006344/0.4518, allocations: 2.036 MB / 1.118 GB, free: 7.211 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.005373/0.4572, allocations: 1.954 MB / 1.12 GB, free: 5.258 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.01026/0.4675, allocations: 7.982 MB / 1.128 GB, free: 13.25 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0135/0.481, allocations: 9.585 MB / 1.137 GB, free: 3.551 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005484/0.4865, allocations: 3.353 MB / 1.14 GB, free: 192 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006096/0.4927, allocations: 3.734 MB / 1.144 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.002215/0.4949, allocations: 0.6797 MB / 1.145 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004617/0.4995, allocations: 1.447 MB / 1.146 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.004678/0.5042, allocations: 2.616 MB / 1.149 GB, free: 7.691 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.006946/0.5112, allocations: 3.104 MB / 1.152 GB, free: 4.574 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.01303/0.5242, allocations: 10.3 MB / 1.162 GB, free: 10.24 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.5243, allocations: 4 kB / 1.162 GB, free: 10.24 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.733e-06/0.5243, allocations: 0 / 1.162 GB, free: 10.24 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0003484/0.5247, allocations: 0 / 1.162 GB, free: 10.24 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01294/0.5376, allocations: 5.405 MB / 1.167 GB, free: 4.762 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.5377, allocations: 16.03 kB / 1.167 GB, free: 4.746 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00493/0.5426, allocations: 0.9587 MB / 1.168 GB, free: 3.781 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005873/0.5485, allocations: 2.995 MB / 1.171 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002901/0.5488, allocations: 353.9 kB / 1.171 GB, free: 392 kB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001332/0.5502, allocations: 472.4 kB / 1.172 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01555/0.5657, allocations: 7.914 MB / 1.179 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001162/0.5659, allocations: 23.72 kB / 1.179 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006795/0.5666, allocations: 212 kB / 1.18 GB, free: 7.414 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005522/0.5671, allocations: 369.1 kB / 1.18 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01259/0.5797, allocations: 5.937 MB / 1.186 GB, free: 1.098 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04487/0.6246, allocations: 36.21 MB / 1.221 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003748/0.6284, allocations: 2.135 MB / 1.223 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002054/0.6305, allocations: 1.484 MB / 1.225 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001001/0.6306, allocations: 17.31 kB / 1.225 GB, free: 6 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.783e-05/0.6307, allocations: 59.72 kB / 1.225 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=157): time 4.077e-06/0.6307, allocations: 0 / 1.225 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of matching and sorting (n=160): time 0.01499/0.6457, allocations: 7.533 MB / 1.232 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/0.6458, allocations: 68.72 kB / 1.232 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003033/0.6488, allocations: 1.86 MB / 1.234 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001609/0.649, allocations: 53.7 kB / 1.234 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001499/0.6505, allocations: 2.127 MB / 1.236 GB, free: 9.945 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005348/0.651, allocations: 0.5624 MB / 1.237 GB, free: 9.375 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006581/0.6517, allocations: 403.7 kB / 1.237 GB, free: 8.973 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.6518, allocations: 305.1 kB / 1.237 GB, free: 8.672 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001646/0.6535, allocations: 1.062 MB / 1.238 GB, free: 7.605 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002056/0.6555, allocations: 1.756 MB / 1.24 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003788/0.6593, allocations: 3.049 MB / 1.243 GB, free: 2.168 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.002e-05/0.6594, allocations: 15.98 kB / 1.243 GB, free: 2.152 MB / 0.9981 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.5635/1.223, allocations: 3.916 MB / 1.247 GB, free: 163.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.265e-05/1.223, allocations: 14.62 kB / 1.247 GB, free: 163.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.756e-05/1.223, allocations: 21.88 kB / 1.247 GB, free: 163.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002621/1.226, allocations: 0.9272 MB / 1.248 GB, free: 163.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001737/1.227, allocations: 432 kB / 1.248 GB, free: 163.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01689/1.244, allocations: 22.77 MB / 1.271 GB, free: 145.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002238/1.247, allocations: 128.5 kB / 1.271 GB, free: 145.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001482/1.247, allocations: 92.89 kB / 1.271 GB, free: 145.8 MB / 0.9981 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002773/1.25, allocations: 1.65 MB / 1.272 GB, free: 145.1 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004248/1.25, allocations: 251.2 kB / 1.273 GB, free: 145.1 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00535/1.255, allocations: 3.263 MB / 1.276 GB, free: 143.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-05/1.255, allocations: 20.3 kB / 1.276 GB, free: 143.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.558e-05/1.255, allocations: 13.22 kB / 1.276 GB, free: 143.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.127e-05/1.255, allocations: 8.812 kB / 1.276 GB, free: 143.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01397/1.269, allocations: 7.555 MB / 1.283 GB, free: 140.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.447e-05/1.269, allocations: 4.531 kB / 1.283 GB, free: 140.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009968/1.27, allocations: 215.2 kB / 1.283 GB, free: 140.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002426/1.273, allocations: 0.8998 MB / 1.284 GB, free: 140.2 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001372/1.273, allocations: 31.19 kB / 1.284 GB, free: 140.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01766/1.291, allocations: 22.74 MB / 1.307 GB, free: 120.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/1.291, allocations: 8.344 kB / 1.307 GB, free: 120.9 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008237/1.299, allocations: 3.377 MB / 1.31 GB, free: 119.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001928/1.301, allocations: 0.5353 MB / 1.31 GB, free: 119.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001038/1.302, allocations: 31.28 kB / 1.31 GB, free: 119.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001988/1.304, allocations: 95.39 kB / 1.31 GB, free: 119.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005574/1.305, allocations: 142.8 kB / 1.311 GB, free: 119 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001785/1.305, allocations: 46.56 kB / 1.311 GB, free: 119 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002831/1.308, allocations: 1.222 MB / 1.312 GB, free: 118.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.308, allocations: 0 / 1.312 GB, free: 118.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004737/1.312, allocations: 0.9047 MB / 1.313 GB, free: 118.5 MB / 0.9981 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003957/1.313, allocations: 157 kB / 1.313 GB, free: 118.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.008387/1.321, allocations: 5.208 MB / 1.318 GB, free: 115.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/1.321, allocations: 1.938 kB / 1.318 GB, free: 115.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0038/1.325, allocations: 2.985 MB / 1.321 GB, free: 113.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004475/1.33, allocations: 0.824 MB / 1.322 GB, free: 113.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/1.345, allocations: 7.701 MB / 1.329 GB, free: 109.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004226/1.349, allocations: 3.206 MB / 1.332 GB, free: 107.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002259/1.351, allocations: 0.5337 MB / 1.333 GB, free: 107.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005272/1.352, allocations: 139 kB / 1.333 GB, free: 107.4 MB / 0.9981 GB Notification: Performance of SimCode: time 1.513e-06/1.352, allocations: 0 / 1.333 GB, free: 107.4 MB / 0.9981 GB Notification: Performance of Templates: time 0.06777/1.419, allocations: 42.93 MB / 1.375 GB, free: 66.55 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches