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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0016/0.0016, allocations: 113.6 kB / 16.42 MB, free: 6.016 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.002031/0.002031, allocations: 187.4 kB / 17.35 MB, free: 5.629 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.383/1.383, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.56/2.56, allocations: 461.9 MB / 0.7355 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 64.12 kB / 1.055 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8462/0.8477, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03783/0.8856, allocations: 35.12 MB / 1.243 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01713/0.9027, allocations: 9.933 MB / 1.252 GB, free: 428 kB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003144/0.9059, allocations: 159.2 kB / 1.253 GB, free: 268 kB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.009654/0.9157, allocations: 3.799 MB / 1.256 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.006045/0.9217, allocations: 2.04 MB / 1.258 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00532/0.9271, allocations: 1.963 MB / 1.26 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.009086/0.9362, allocations: 7.971 MB / 1.268 GB, free: 456 kB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01141/0.9476, allocations: 9.522 MB / 1.277 GB, free: 6.805 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005028/0.9526, allocations: 3.42 MB / 1.281 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009296/0.962, allocations: 3.73 MB / 1.284 GB, free: 15.63 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.003059/0.965, allocations: 0.6797 MB / 1.285 GB, free: 14.95 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005174/0.9702, allocations: 1.447 MB / 1.286 GB, free: 13.5 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.005213/0.9755, allocations: 2.62 MB / 1.289 GB, free: 10.88 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.006397/0.9819, allocations: 3.108 MB / 1.292 GB, free: 7.758 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01262/0.9945, allocations: 10.38 MB / 1.302 GB, free: 13.35 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.9946, allocations: 0 / 1.302 GB, free: 13.35 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.264e-06/0.9946, allocations: 0 / 1.302 GB, free: 13.35 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0003133/0.9949, allocations: 0 / 1.302 GB, free: 13.35 MB / 1.029 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.01693/1.012, allocations: 5.412 MB / 1.307 GB, free: 7.867 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/1.012, allocations: 12.03 kB / 1.307 GB, free: 7.855 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004529/1.016, allocations: 0.9587 MB / 1.308 GB, free: 6.891 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005034/1.022, allocations: 3.178 MB / 1.311 GB, free: 3.656 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002143/1.022, allocations: 357.9 kB / 1.312 GB, free: 3.305 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006522/1.022, allocations: 464.3 kB / 1.312 GB, free: 2.852 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01385/1.036, allocations: 7.914 MB / 1.32 GB, free: 10.57 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001085/1.036, allocations: 23.8 kB / 1.32 GB, free: 10.55 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004858/1.037, allocations: 215.9 kB / 1.32 GB, free: 10.34 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004907/1.037, allocations: 361.1 kB / 1.321 GB, free: 9.984 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01038/1.048, allocations: 5.937 MB / 1.326 GB, free: 4.031 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03561/1.083, allocations: 35.94 MB / 1.361 GB, free: 12.86 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003176/1.087, allocations: 2.138 MB / 1.363 GB, free: 10.71 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001856/1.089, allocations: 1.484 MB / 1.365 GB, free: 9.223 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001043/1.089, allocations: 21.3 kB / 1.365 GB, free: 9.203 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.624e-05/1.089, allocations: 63.75 kB / 1.365 GB, free: 9.133 MB / 1.092 GB Notification: Performance of pre-optimization done (n=157): time 4.248e-06/1.089, allocations: 0 / 1.365 GB, free: 9.133 MB / 1.092 GB Notification: Performance of matching and sorting (n=160): time 0.01344/1.102, allocations: 7.532 MB / 1.372 GB, free: 1.328 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/1.102, allocations: 68.72 kB / 1.372 GB, free: 1.25 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00315/1.105, allocations: 1.86 MB / 1.374 GB, free: 15.36 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.0001383/1.106, allocations: 53.7 kB / 1.374 GB, free: 15.3 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.001401/1.107, allocations: 2.127 MB / 1.376 GB, free: 13.15 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005/1.107, allocations: 0.5546 MB / 1.377 GB, free: 12.59 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006692/1.108, allocations: 407.7 kB / 1.377 GB, free: 12.18 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001052/1.108, allocations: 305.1 kB / 1.378 GB, free: 11.88 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001586/1.11, allocations: 1.062 MB / 1.379 GB, free: 10.82 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002209/1.112, allocations: 1.76 MB / 1.38 GB, free: 8.738 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00419/1.116, allocations: 3.049 MB / 1.383 GB, free: 5.375 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-05/1.116, allocations: 11.94 kB / 1.383 GB, free: 5.363 MB / 1.107 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.007616/1.124, allocations: 3.92 MB / 1.387 GB, free: 1.395 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 5.221e-05/1.124, allocations: 21.81 kB / 1.387 GB, free: 1.375 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.377e-05/1.124, allocations: 24 kB / 1.387 GB, free: 1.352 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002464/1.127, allocations: 0.9278 MB / 1.388 GB, free: 396 kB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001531/1.128, allocations: 427.3 kB / 1.389 GB, free: 15.96 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02064/1.149, allocations: 22.75 MB / 1.411 GB, free: 7.535 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002209/1.151, allocations: 127.9 kB / 1.411 GB, free: 7.41 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003842/1.151, allocations: 92 kB / 1.411 GB, free: 7.32 MB / 1.139 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.003165/1.155, allocations: 1.652 MB / 1.413 GB, free: 5.656 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006852/1.155, allocations: 261 kB / 1.413 GB, free: 5.398 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00554/1.161, allocations: 3.256 MB / 1.416 GB, free: 2.09 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.825e-05/1.161, allocations: 11.97 kB / 1.416 GB, free: 2.078 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/1.161, allocations: 0 / 1.416 GB, free: 2.078 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/1.162, allocations: 0.5175 MB / 1.417 GB, free: 1.539 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004727/1.162, allocations: 35.98 kB / 1.417 GB, free: 1.504 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/1.164, allocations: 87.83 kB / 1.417 GB, free: 1.418 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003094/1.164, allocations: 145.1 kB / 1.417 GB, free: 1.277 MB / 1.139 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006433/1.17, allocations: 3.388 MB / 1.42 GB, free: 13.84 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004905/1.175, allocations: 3.67 MB / 1.424 GB, free: 10.16 MB / 1.154 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001272/1.177, allocations: 1.091 MB / 1.425 GB, free: 9.066 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.001874/1.179, allocations: 1.225 MB / 1.426 GB, free: 7.828 MB / 1.154 GB Notification: Performance of Backend: time 4.61e-07/1.179, allocations: 0 / 1.426 GB, free: 7.828 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.007229/1.186, allocations: 3.992 MB / 1.43 GB, free: 3.672 MB / 1.154 GB Notification: Performance of SimCode: time 0.01704/1.203, allocations: 8.519 MB / 1.438 GB, free: 11.11 MB / 1.17 GB Notification: Performance of Templates: time 0.08578/1.289, allocations: 49.72 MB / 1.487 GB, free: 9.996 MB / 1.217 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/jenkins1/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