Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002122/0.002122, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002594/0.002594, allocations: 210.5 kB / 22.24 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.483/1.483, allocations: 230.6 MB / 256 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.435/3.435, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_N") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00219/0.00219, allocations: 70.61 kB / 1.186 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.3696, allocations: 181.9 MB / 1.364 GB, free: 13.6 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04898/0.4186, allocations: 36.43 MB / 1.399 GB, free: 9.043 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.0209/0.4395, allocations: 11.11 MB / 1.41 GB, free: 13.9 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004117/0.4436, allocations: 202.5 kB / 1.41 GB, free: 13.7 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.01278/0.4564, allocations: 4.383 MB / 1.415 GB, free: 9.312 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.007067/0.4635, allocations: 2.324 MB / 1.417 GB, free: 6.977 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.00653/0.47, allocations: 2.183 MB / 1.419 GB, free: 4.797 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.01263/0.4827, allocations: 9.277 MB / 1.428 GB, free: 11.49 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01217/0.4948, allocations: 6.33 MB / 1.434 GB, free: 5.039 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006921/0.5017, allocations: 4.133 MB / 1.438 GB, free: 0.8945 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008165/0.5099, allocations: 4.462 MB / 1.443 GB, free: 12.42 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.002372/0.5123, allocations: 0.8203 MB / 1.444 GB, free: 11.6 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00463/0.5169, allocations: 1.506 MB / 1.445 GB, free: 10.09 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.004962/0.5219, allocations: 3.231 MB / 1.448 GB, free: 6.852 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.006833/0.5287, allocations: 2.969 MB / 1.451 GB, free: 3.871 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.01544/0.5441, allocations: 12.4 MB / 1.463 GB, free: 7.426 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.5442, allocations: 0 / 1.463 GB, free: 7.426 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5442, allocations: 0 / 1.463 GB, free: 7.426 MB / 1.154 GB Notification: Performance of Transformations before backend: time 0.0003133/0.5445, allocations: 0 / 1.463 GB, free: 7.426 MB / 1.154 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.0165/0.561, allocations: 6.407 MB / 1.469 GB, free: 0.957 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.561, allocations: 8.031 kB / 1.469 GB, free: 0.9492 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007298/0.5683, allocations: 1.095 MB / 1.471 GB, free: 15.85 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009731/0.5781, allocations: 3.576 MB / 1.474 GB, free: 12.21 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004899/0.5785, allocations: 419.8 kB / 1.474 GB, free: 11.8 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002361/0.5809, allocations: 0.5394 MB / 1.475 GB, free: 11.26 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02602/0.6069, allocations: 10.29 MB / 1.485 GB, free: 428 kB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002474/0.6072, allocations: 19.83 kB / 1.485 GB, free: 408 kB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001562/0.6087, allocations: 247.9 kB / 1.485 GB, free: 160 kB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000736/0.6095, allocations: 423 kB / 1.486 GB, free: 15.74 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0157/0.6252, allocations: 7.119 MB / 1.493 GB, free: 8.609 MB / 1.186 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04671/0.6719, allocations: 25.36 MB / 1.517 GB, free: 14.62 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005207/0.6771, allocations: 2.894 MB / 1.52 GB, free: 11.73 MB / 1.217 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003191/0.6803, allocations: 1.93 MB / 1.522 GB, free: 9.801 MB / 1.217 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001078/0.6804, allocations: 22 kB / 1.522 GB, free: 9.777 MB / 1.217 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.418e-05/0.6805, allocations: 68.5 kB / 1.522 GB, free: 9.703 MB / 1.217 GB Notification: Performance of pre-optimization done (n=209): time 4.138e-06/0.6805, allocations: 3.938 kB / 1.522 GB, free: 9.699 MB / 1.217 GB Notification: Performance of matching and sorting (n=212): time 0.02542/0.7059, allocations: 10.26 MB / 1.532 GB, free: 15.43 MB / 1.232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.475e-05/0.7059, allocations: 73.41 kB / 1.532 GB, free: 15.34 MB / 1.232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002978/0.7089, allocations: 1.837 MB / 1.534 GB, free: 13.47 MB / 1.232 GB Notification: Performance of collectPreVariables (initialization): time 0.000255/0.7092, allocations: 61.7 kB / 1.534 GB, free: 13.41 MB / 1.232 GB Notification: Performance of collectInitialEqns (initialization): time 0.001913/0.7111, allocations: 2.485 MB / 1.537 GB, free: 10.9 MB / 1.232 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009047/0.712, allocations: 0.7668 MB / 1.537 GB, free: 10.12 MB / 1.232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009298/0.7129, allocations: 485.5 kB / 1.538 GB, free: 9.645 MB / 1.232 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.7131, allocations: 301.1 kB / 1.538 GB, free: 9.348 MB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002379/0.7154, allocations: 1.372 MB / 1.539 GB, free: 7.973 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003467/0.7189, allocations: 2.108 MB / 1.541 GB, free: 5.551 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006496/0.7254, allocations: 3.77 MB / 1.545 GB, free: 1.473 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.507e-05/0.7254, allocations: 4 kB / 1.545 GB, free: 1.469 MB / 1.232 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.01047/0.7359, allocations: 5.007 MB / 1.55 GB, free: 12.44 MB / 1.248 GB Notification: Performance of prepare postOptimizeDAE: time 4.261e-05/0.7359, allocations: 18.66 kB / 1.55 GB, free: 12.42 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.833e-05/0.736, allocations: 20.91 kB / 1.55 GB, free: 12.4 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003932/0.7399, allocations: 1.587 MB / 1.552 GB, free: 10.8 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001886/0.7418, allocations: 451.3 kB / 1.552 GB, free: 10.36 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02591/0.7677, allocations: 17.77 MB / 1.569 GB, free: 8.184 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002367/0.7701, allocations: 147.9 kB / 1.57 GB, free: 8.039 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003742/0.7704, allocations: 112 kB / 1.57 GB, free: 7.93 MB / 1.264 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003518/0.774, allocations: 1.937 MB / 1.572 GB, free: 5.98 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006838/0.7746, allocations: 282.3 kB / 1.572 GB, free: 5.703 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007541/0.7822, allocations: 4.393 MB / 1.576 GB, free: 1.277 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.121e-05/0.7822, allocations: 20 kB / 1.576 GB, free: 1.258 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.217e-05/0.7822, allocations: 16 kB / 1.576 GB, free: 1.242 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.047e-05/0.7822, allocations: 15.95 kB / 1.576 GB, free: 1.227 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01542/0.7977, allocations: 8.354 MB / 1.584 GB, free: 8.754 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.7977, allocations: 8 kB / 1.584 GB, free: 8.746 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/0.7987, allocations: 231.6 kB / 1.585 GB, free: 8.52 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00343/0.8022, allocations: 1.427 MB / 1.586 GB, free: 7.082 MB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001519/0.8023, allocations: 43.98 kB / 1.586 GB, free: 7.039 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02445/0.8268, allocations: 17.79 MB / 1.603 GB, free: 4.836 MB / 1.295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.8268, allocations: 4 kB / 1.603 GB, free: 4.832 MB / 1.295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007876/0.8347, allocations: 4.49 MB / 1.608 GB, free: 256 kB / 1.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.6441/1.479, allocations: 0.5395 MB / 1.608 GB, free: 175.1 MB / 1.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008577/1.48, allocations: 42.08 kB / 1.608 GB, free: 175.1 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001807/1.481, allocations: 113.2 kB / 1.608 GB, free: 175.1 MB / 1.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007491/1.482, allocations: 191.4 kB / 1.609 GB, free: 175.1 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002914/1.482, allocations: 59.77 kB / 1.609 GB, free: 175.1 MB / 1.295 GB Notification: Performance of sorting global known variables: time 0.002425/1.485, allocations: 1.17 MB / 1.61 GB, free: 175 MB / 1.295 GB Notification: Performance of sort global known variables: time 8e-08/1.485, allocations: 0 / 1.61 GB, free: 175 MB / 1.295 GB Notification: Performance of remove unused functions: time 0.004736/1.49, allocations: 1.138 MB / 1.611 GB, free: 175 MB / 1.295 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005804/1.49, allocations: 160.7 kB / 1.611 GB, free: 174.9 MB / 1.295 GB Notification: Performance of simCode: created initialization part: time 0.009036/1.499, allocations: 4.539 MB / 1.616 GB, free: 174.4 MB / 1.295 GB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/1.499, allocations: 5.625 kB / 1.616 GB, free: 174.4 MB / 1.295 GB Notification: Performance of simCode: created simulation system equations: time 0.004404/1.504, allocations: 2.801 MB / 1.618 GB, free: 173.8 MB / 1.295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003948/1.508, allocations: 0.8211 MB / 1.619 GB, free: 173.7 MB / 1.295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01999/1.528, allocations: 9.542 MB / 1.628 GB, free: 170.7 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00719/1.535, allocations: 3.159 MB / 1.631 GB, free: 170.4 MB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.002994/1.538, allocations: 0.535 MB / 1.632 GB, free: 170.3 MB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007065/1.539, allocations: 141.3 kB / 1.632 GB, free: 170.3 MB / 1.295 GB Notification: Performance of SimCode: time 1.092e-06/1.539, allocations: 0 / 1.632 GB, free: 170.3 MB / 1.295 GB Notification: Performance of Templates: time 0.0855/1.624, allocations: 58.63 MB / 1.689 GB, free: 145.4 MB / 1.295 GB " [Timeout remaining time 298] make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.63766384869814]