Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.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.00212/0.00212, allocations: 104.4 kB / 19.7 MB, free: 2.137 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.002352/0.002352, allocations: 217.5 kB / 22.99 MB, free: 4.965 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.492/1.492, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.292/3.292, allocations: 0.4892 GB / 0.7951 GB, free: 35.73 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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.ThreePhasesBalanced.Lines.Examples.ACLine_L,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_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,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_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L") [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.003219/0.003219, allocations: 72.34 kB / 1.154 GB, free: 25.57 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4068/0.4101, allocations: 176.1 MB / 1.326 GB, free: 1.859 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.01036/0.4204, allocations: 5.985 MB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.006576/0.427, allocations: 3.157 MB / 1.335 GB, free: 8.684 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000709/0.4277, allocations: 47.56 kB / 1.335 GB, free: 8.637 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.002726/0.4304, allocations: 0.9325 MB / 1.336 GB, free: 7.703 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.001478/0.4319, allocations: 489.5 kB / 1.337 GB, free: 7.223 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001359/0.4333, allocations: 0.491 MB / 1.337 GB, free: 6.73 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001453/0.4347, allocations: 1.108 MB / 1.338 GB, free: 5.617 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000862/0.4356, allocations: 0.5062 MB / 1.339 GB, free: 5.102 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007425/0.4363, allocations: 470.3 kB / 1.339 GB, free: 4.641 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006886/0.437, allocations: 474 kB / 1.34 GB, free: 4.176 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.4371, allocations: 60 kB / 1.34 GB, free: 4.117 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008839/0.438, allocations: 443 kB / 1.34 GB, free: 3.684 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0003131/0.4383, allocations: 291.1 kB / 1.34 GB, free: 3.398 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0003634/0.4387, allocations: 334.4 kB / 1.341 GB, free: 3.07 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.00147/0.4402, allocations: 1.183 MB / 1.342 GB, free: 1.883 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.4402, allocations: 0 / 1.342 GB, free: 1.883 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.415e-06/0.4402, allocations: 3.938 kB / 1.342 GB, free: 1.879 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.754e-05/0.4402, allocations: 4 kB / 1.342 GB, free: 1.875 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001996/0.4422, allocations: 1.01 MB / 1.343 GB, free: 0.8281 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.4422, allocations: 12.03 kB / 1.343 GB, free: 0.8164 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001511/0.4437, allocations: 220.2 kB / 1.343 GB, free: 0.6016 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.445, allocations: 0.5244 MB / 1.344 GB, free: 56 kB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.202e-05/0.445, allocations: 49.67 kB / 1.344 GB, free: 4 kB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001545/0.4452, allocations: 60.36 kB / 1.344 GB, free: 15.94 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001759/0.4469, allocations: 1.146 MB / 1.345 GB, free: 14.66 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.784e-05/0.447, allocations: 3.953 kB / 1.345 GB, free: 14.66 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.082e-05/0.447, allocations: 35.94 kB / 1.345 GB, free: 14.62 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.792e-05/0.4471, allocations: 65.27 kB / 1.345 GB, free: 14.56 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001096/0.4482, allocations: 0.6918 MB / 1.346 GB, free: 13.87 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005277/0.4535, allocations: 4.409 MB / 1.35 GB, free: 9.305 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008427/0.4544, allocations: 414.1 kB / 1.35 GB, free: 8.891 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008223/0.4552, allocations: 382.2 kB / 1.351 GB, free: 8.516 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 4.398e-05/0.4552, allocations: 8.672 kB / 1.351 GB, free: 8.508 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.4553, allocations: 34.56 kB / 1.351 GB, free: 8.465 MB / 1.045 GB Notification: Performance of pre-optimization done (n=41): time 2.775e-06/0.4553, allocations: 0 / 1.351 GB, free: 8.465 MB / 1.045 GB Notification: Performance of matching and sorting (n=42): time 0.00457/0.4598, allocations: 1.714 MB / 1.352 GB, free: 6.73 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.5e-05/0.4599, allocations: 59.34 kB / 1.352 GB, free: 6.66 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005645/0.4604, allocations: 445.8 kB / 1.353 GB, free: 6.215 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.521e-05/0.4605, allocations: 29.7 kB / 1.353 GB, free: 6.18 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.000357/0.4608, allocations: 400 kB / 1.353 GB, free: 5.781 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.461, allocations: 162.6 kB / 1.353 GB, free: 5.621 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.4612, allocations: 114.2 kB / 1.353 GB, free: 5.504 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000227/0.4614, allocations: 362.8 kB / 1.354 GB, free: 5.141 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000375/0.4618, allocations: 245.2 kB / 1.354 GB, free: 4.898 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006008/0.4624, allocations: 453.5 kB / 1.355 GB, free: 4.363 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.4635, allocations: 0.7524 MB / 1.355 GB, free: 3.516 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.4635, allocations: 0 / 1.355 GB, free: 3.516 MB / 1.045 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002043/0.4655, allocations: 1.031 MB / 1.356 GB, free: 2.465 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/0.4656, allocations: 8 kB / 1.356 GB, free: 2.457 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/0.4656, allocations: 4 kB / 1.356 GB, free: 2.453 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/0.4667, allocations: 323.6 kB / 1.357 GB, free: 2.125 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003425/0.467, allocations: 99.77 kB / 1.357 GB, free: 2.027 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008297/0.4753, allocations: 6.926 MB / 1.363 GB, free: 10.68 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005508/0.4759, allocations: 36.3 kB / 1.363 GB, free: 10.65 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.626e-05/0.4759, allocations: 24 kB / 1.363 GB, free: 10.62 MB / 1.061 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 (53): * Single equations (assignments): 49 * 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 {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004602/0.4764, allocations: 249.5 kB / 1.364 GB, free: 10.37 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.4765, allocations: 59.77 kB / 1.364 GB, free: 10.31 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001807/0.4783, allocations: 0.8841 MB / 1.365 GB, free: 9.41 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.4783, allocations: 4 kB / 1.365 GB, free: 9.406 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.4783, allocations: 4 kB / 1.365 GB, free: 9.402 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-06/0.4783, allocations: 3.984 kB / 1.365 GB, free: 9.398 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002882/0.4812, allocations: 1.497 MB / 1.366 GB, free: 7.832 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.4812, allocations: 4 kB / 1.366 GB, free: 7.828 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001737/0.4814, allocations: 43.91 kB / 1.366 GB, free: 7.785 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009462/0.4823, allocations: 303.2 kB / 1.366 GB, free: 7.477 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.507e-05/0.4823, allocations: 12 kB / 1.366 GB, free: 7.465 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007925/0.4903, allocations: 6.923 MB / 1.373 GB, free: 132 kB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.916e-06/0.4903, allocations: 7.938 kB / 1.373 GB, free: 124 kB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.4922, allocations: 0.9721 MB / 1.374 GB, free: 15.1 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003265/0.4925, allocations: 103.5 kB / 1.374 GB, free: 15 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.479e-05/0.4926, allocations: 12 kB / 1.374 GB, free: 14.99 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002914/0.4929, allocations: 27.91 kB / 1.374 GB, free: 14.96 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.493, allocations: 47.86 kB / 1.374 GB, free: 14.91 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.4931, allocations: 8 kB / 1.374 GB, free: 14.91 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0004163/0.4935, allocations: 290.9 kB / 1.375 GB, free: 14.62 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.4935, allocations: 0 / 1.375 GB, free: 14.62 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0009117/0.4944, allocations: 192 kB / 1.375 GB, free: 14.44 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 19 * 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 {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,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.000188/0.4946, allocations: 111.2 kB / 1.375 GB, free: 14.32 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.002138/0.4967, allocations: 1.16 MB / 1.376 GB, free: 13.11 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.4967, allocations: 0 / 1.376 GB, free: 13.11 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.00134/0.4981, allocations: 0.823 MB / 1.377 GB, free: 12.23 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.4991, allocations: 199.8 kB / 1.377 GB, free: 12.05 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002647/0.5018, allocations: 1.326 MB / 1.378 GB, free: 10.68 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005541/0.5023, allocations: 390.9 kB / 1.379 GB, free: 10.27 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.5025, allocations: 51.42 kB / 1.379 GB, free: 10.22 MB / 1.076 GB Notification: Performance of SimCode: time 9.42e-07/0.5025, allocations: 0 / 1.379 GB, free: 10.22 MB / 1.076 GB Notification: Performance of Templates: time 0.02566/0.5281, allocations: 18.83 MB / 1.397 GB, free: 7.422 MB / 1.092 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & ./Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference: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] Variables in the result:R1.i[1],R1.i[2],R1.v[1],R1.v[2],R2.i[1],R2.i[2],R2.v[1],R2.v[2],R3.i[1],R3.i[2],R3.v[1],R3.v[2],load_sc.i[1],load_sc.i[2],time [Calling sys.exit(0), Time elapsed: 14.439616394694895]