Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.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.001422/0.001422, 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.001897/0.001897, 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.538/1.538, allocations: 230.6 MB / 256 MB, free: 7.785 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.472/3.472, allocations: 0.5107 GB / 0.8158 GB, free: 17.79 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.OnePhase.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") [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.003794/0.003794, allocations: 66.56 kB / 1.186 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4081/0.4119, allocations: 181.9 MB / 1.364 GB, free: 13.54 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01438/0.4263, allocations: 10.34 MB / 1.374 GB, free: 3.148 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.01437/0.4406, allocations: 8.504 MB / 1.382 GB, free: 10.62 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001525/0.4422, allocations: 83.25 kB / 1.382 GB, free: 10.54 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.004669/0.4468, allocations: 1.671 MB / 1.384 GB, free: 8.863 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.00521/0.452, allocations: 1.57 MB / 1.385 GB, free: 7.289 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.002028/0.4541, allocations: 0.6779 MB / 1.386 GB, free: 6.613 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.003351/0.4574, allocations: 2.271 MB / 1.388 GB, free: 4.332 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001907/0.4593, allocations: 1.149 MB / 1.389 GB, free: 3.145 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00223/0.4615, allocations: 1.184 MB / 1.391 GB, free: 1.957 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001629/0.4632, allocations: 0.9295 MB / 1.392 GB, free: 1.023 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.0002272/0.4634, allocations: 140 kB / 1.392 GB, free: 0.8867 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001541/0.4649, allocations: 0.7369 MB / 1.392 GB, free: 152 kB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0006035/0.4655, allocations: 0.5725 MB / 1.393 GB, free: 15.57 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.0009313/0.4665, allocations: 0.7153 MB / 1.394 GB, free: 14.85 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.003828/0.4703, allocations: 2.58 MB / 1.396 GB, free: 12.27 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.4703, allocations: 0 / 1.396 GB, free: 12.27 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.954e-06/0.4703, allocations: 0 / 1.396 GB, free: 12.27 MB / 1.092 GB Notification: Performance of Transformations before backend: time 4.417e-05/0.4704, allocations: 0 / 1.396 GB, free: 12.27 MB / 1.092 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.003402/0.4738, allocations: 1.991 MB / 1.398 GB, free: 10.23 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.4738, allocations: 8.031 kB / 1.398 GB, free: 10.23 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0114/0.4852, allocations: 2.051 MB / 1.4 GB, free: 8.172 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003206/0.4884, allocations: 1.13 MB / 1.401 GB, free: 6.992 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.77e-05/0.4885, allocations: 78.7 kB / 1.401 GB, free: 6.914 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002823/0.4888, allocations: 124.1 kB / 1.401 GB, free: 6.793 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005826/0.4946, allocations: 2.697 MB / 1.404 GB, free: 3.898 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.36e-05/0.4946, allocations: 7.938 kB / 1.404 GB, free: 3.891 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001456/0.4948, allocations: 48 kB / 1.404 GB, free: 3.844 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003628/0.4951, allocations: 126.1 kB / 1.404 GB, free: 3.719 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007404/0.5026, allocations: 2.549 MB / 1.407 GB, free: 1.16 MB / 1.092 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01292/0.5155, allocations: 7.472 MB / 1.414 GB, free: 9.523 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006216/0.5217, allocations: 1.857 MB / 1.416 GB, free: 7.656 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002741/0.5244, allocations: 0.9386 MB / 1.417 GB, free: 6.715 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 4.644e-05/0.5245, allocations: 12.44 kB / 1.417 GB, free: 6.703 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.5245, allocations: 43 kB / 1.417 GB, free: 6.652 MB / 1.107 GB Notification: Performance of pre-optimization done (n=53): time 3.356e-06/0.5245, allocations: 0 / 1.417 GB, free: 6.652 MB / 1.107 GB Notification: Performance of matching and sorting (n=81): time 0.03322/0.5577, allocations: 9.102 MB / 1.426 GB, free: 13.51 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.012e-05/0.5578, allocations: 60.06 kB / 1.426 GB, free: 13.44 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001929/0.5598, allocations: 0.9631 MB / 1.427 GB, free: 12.46 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 0.0001198/0.5599, allocations: 37.7 kB / 1.427 GB, free: 12.42 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009025/0.5608, allocations: 0.7697 MB / 1.427 GB, free: 11.64 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003848/0.5612, allocations: 293.5 kB / 1.428 GB, free: 11.36 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000538/0.5617, allocations: 210.5 kB / 1.428 GB, free: 11.14 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0002066/0.5619, allocations: 341.9 kB / 1.428 GB, free: 10.8 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003079/0.565, allocations: 1.083 MB / 1.429 GB, free: 9.719 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003591/0.5686, allocations: 1.321 MB / 1.431 GB, free: 8.309 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006642/0.5752, allocations: 2.401 MB / 1.433 GB, free: 5.812 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.5752, allocations: 4 kB / 1.433 GB, free: 5.809 MB / 1.123 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.009899/0.5851, allocations: 3.27 MB / 1.436 GB, free: 2.5 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 3.722e-05/0.5852, allocations: 10.78 kB / 1.436 GB, free: 2.492 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.293e-05/0.5852, allocations: 12 kB / 1.436 GB, free: 2.48 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003227/0.5884, allocations: 0.8536 MB / 1.437 GB, free: 1.602 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002152/0.5906, allocations: 411.2 kB / 1.437 GB, free: 1.199 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01955/0.6101, allocations: 15.02 MB / 1.452 GB, free: 1.352 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002351/0.6125, allocations: 295.5 kB / 1.452 GB, free: 1.062 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001418/0.6126, allocations: 47.97 kB / 1.452 GB, free: 1.016 MB / 1.139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,2,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,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.0008659/0.6135, allocations: 405.5 kB / 1.453 GB, free: 0.6094 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003231/0.6138, allocations: 135.2 kB / 1.453 GB, free: 488 kB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009322/0.6231, allocations: 3.204 MB / 1.456 GB, free: 13.23 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.939e-05/0.6231, allocations: 15.98 kB / 1.456 GB, free: 13.21 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/0.6232, allocations: 8 kB / 1.456 GB, free: 13.2 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/0.6232, allocations: 7.984 kB / 1.456 GB, free: 13.2 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01228/0.6354, allocations: 4.527 MB / 1.461 GB, free: 8.578 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.6354, allocations: 4.062 kB / 1.461 GB, free: 8.574 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/0.6371, allocations: 351.4 kB / 1.461 GB, free: 8.23 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002671/0.6398, allocations: 0.7638 MB / 1.462 GB, free: 7.441 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001107/0.6399, allocations: 31.97 kB / 1.462 GB, free: 7.41 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01771/0.6576, allocations: 14.64 MB / 1.476 GB, free: 7.945 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.6576, allocations: 3.938 kB / 1.476 GB, free: 7.941 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008539/0.6662, allocations: 3.051 MB / 1.479 GB, free: 4.812 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009289/0.6671, allocations: 302.9 kB / 1.479 GB, free: 4.516 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001879/0.6673, allocations: 15.98 kB / 1.479 GB, free: 4.5 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00184/0.6691, allocations: 295.5 kB / 1.48 GB, free: 4.211 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002887/0.6694, allocations: 80.45 kB / 1.48 GB, free: 4.133 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.66e-05/0.6695, allocations: 40.05 kB / 1.48 GB, free: 4.094 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.000947/0.6705, allocations: 0.6346 MB / 1.48 GB, free: 3.453 MB / 1.17 GB Notification: Performance of sort global known variables: time 8e-08/0.6705, allocations: 0 / 1.48 GB, free: 3.453 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.001518/0.672, allocations: 440 kB / 1.481 GB, free: 3.023 MB / 1.17 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002633/0.6722, allocations: 135 kB / 1.481 GB, free: 2.883 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.008876/0.6811, allocations: 3.55 MB / 1.484 GB, free: 15.23 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/0.6811, allocations: 4 kB / 1.484 GB, free: 15.23 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.005236/0.6864, allocations: 2.336 MB / 1.487 GB, free: 12.79 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0022/0.6886, allocations: 491 kB / 1.487 GB, free: 12.33 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009922/0.6985, allocations: 3.783 MB / 1.491 GB, free: 8.488 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001283/0.6998, allocations: 0.8015 MB / 1.491 GB, free: 7.645 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.001476/0.7012, allocations: 362.6 kB / 1.492 GB, free: 7.285 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004147/0.7017, allocations: 99.38 kB / 1.492 GB, free: 7.188 MB / 1.186 GB Notification: Performance of SimCode: time 8.51e-07/0.7017, allocations: 0 / 1.492 GB, free: 7.188 MB / 1.186 GB Notification: Performance of Templates: time 0.05767/0.7593, allocations: 33.39 MB / 1.525 GB, free: 6.402 MB / 1.217 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.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.452564219012856]