Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001675/0.001675, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.002172/0.002172, allocations: 214.4 kB / 22.99 MB, free: 4.945 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.537/1.537, allocations: 230.6 MB / 256.8 MB, free: 7.824 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.387/3.387, allocations: 0.5107 GB / 0.8166 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.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_latest_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_latest_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.002107/0.002107, allocations: 70.23 kB / 1.187 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3661, allocations: 181.9 MB / 1.365 GB, free: 13.58 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.008949/0.375, allocations: 5.995 MB / 1.37 GB, free: 7.555 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.005972/0.381, allocations: 3.157 MB / 1.374 GB, free: 4.387 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006327/0.3816, allocations: 39.62 kB / 1.374 GB, free: 4.348 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.002775/0.3844, allocations: 0.9221 MB / 1.374 GB, free: 3.422 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.001459/0.3859, allocations: 497.5 kB / 1.375 GB, free: 2.934 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.3873, allocations: 0.5009 MB / 1.375 GB, free: 2.434 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.001617/0.3889, allocations: 1.104 MB / 1.377 GB, free: 1.324 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009015/0.3898, allocations: 0.5061 MB / 1.377 GB, free: 0.8086 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007701/0.3906, allocations: 462.3 kB / 1.377 GB, free: 364 kB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007178/0.3913, allocations: 478.1 kB / 1.378 GB, free: 15.89 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 9.67e-05/0.3914, allocations: 56 kB / 1.378 GB, free: 15.83 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009156/0.3923, allocations: 447 kB / 1.378 GB, free: 15.39 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.000329/0.3926, allocations: 299.1 kB / 1.379 GB, free: 15.1 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0003827/0.393, allocations: 326.4 kB / 1.379 GB, free: 14.78 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.001514/0.3945, allocations: 1.199 MB / 1.38 GB, free: 13.58 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3945, allocations: 0 / 1.38 GB, free: 13.58 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.804e-06/0.3945, allocations: 0 / 1.38 GB, free: 13.58 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.231e-05/0.3945, allocations: 0 / 1.38 GB, free: 13.58 MB / 1.076 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.001766/0.3963, allocations: 1.006 MB / 1.381 GB, free: 12.54 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.3963, allocations: 11.97 kB / 1.381 GB, free: 12.52 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001481/0.3978, allocations: 220.2 kB / 1.381 GB, free: 12.31 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.3989, allocations: 0.5282 MB / 1.382 GB, free: 11.76 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.069e-05/0.399, allocations: 49.67 kB / 1.382 GB, free: 11.71 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.3991, allocations: 68.31 kB / 1.382 GB, free: 11.64 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.4008, allocations: 1.13 MB / 1.383 GB, free: 10.38 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.674e-05/0.4008, allocations: 7.938 kB / 1.383 GB, free: 10.38 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.894e-05/0.4009, allocations: 27.98 kB / 1.383 GB, free: 10.35 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.31e-05/0.401, allocations: 65.28 kB / 1.383 GB, free: 10.29 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.4021, allocations: 0.6918 MB / 1.384 GB, free: 9.59 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005255/0.4073, allocations: 4.409 MB / 1.388 GB, free: 5.023 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008277/0.4082, allocations: 408.7 kB / 1.389 GB, free: 4.617 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009017/0.4091, allocations: 396.6 kB / 1.389 GB, free: 4.227 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 3.833e-05/0.4091, allocations: 4 kB / 1.389 GB, free: 4.223 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.344e-05/0.4092, allocations: 46.44 kB / 1.389 GB, free: 4.168 MB / 1.076 GB Notification: Performance of pre-optimization done (n=41): time 3.957e-06/0.4092, allocations: 0 / 1.389 GB, free: 4.168 MB / 1.076 GB Notification: Performance of matching and sorting (n=42): time 0.004567/0.4137, allocations: 1.703 MB / 1.391 GB, free: 2.445 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.4138, allocations: 59.34 kB / 1.391 GB, free: 2.375 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005218/0.4143, allocations: 441.8 kB / 1.391 GB, free: 1.934 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.913e-05/0.4143, allocations: 37.7 kB / 1.391 GB, free: 1.891 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003089/0.4146, allocations: 400 kB / 1.392 GB, free: 1.492 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.4148, allocations: 158.6 kB / 1.392 GB, free: 1.336 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.415, allocations: 110.2 kB / 1.392 GB, free: 1.223 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0002202/0.4152, allocations: 362.8 kB / 1.392 GB, free: 0.8594 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003721/0.4156, allocations: 237.2 kB / 1.392 GB, free: 0.625 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000553/0.4161, allocations: 461 kB / 1.393 GB, free: 84 kB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.4172, allocations: 0.7488 MB / 1.394 GB, free: 15.23 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.4172, allocations: 4 kB / 1.394 GB, free: 15.23 MB / 1.092 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00203/0.4192, allocations: 1.023 MB / 1.395 GB, free: 14.19 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.4192, allocations: 8 kB / 1.395 GB, free: 14.18 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.4192, allocations: 8 kB / 1.395 GB, free: 14.17 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001055/0.4203, allocations: 323.2 kB / 1.395 GB, free: 13.84 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003386/0.4206, allocations: 95.77 kB / 1.395 GB, free: 13.75 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007947/0.4286, allocations: 6.932 MB / 1.402 GB, free: 6.406 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000464/0.429, allocations: 36.02 kB / 1.402 GB, free: 6.371 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.371e-05/0.4291, allocations: 28.06 kB / 1.402 GB, free: 6.344 MB / 1.092 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.0003722/0.4295, allocations: 245.5 kB / 1.402 GB, free: 6.094 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.183e-05/0.4295, allocations: 55.67 kB / 1.402 GB, free: 6.039 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001782/0.4313, allocations: 0.8803 MB / 1.403 GB, free: 5.141 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.4313, allocations: 7.984 kB / 1.403 GB, free: 5.133 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.4313, allocations: 4.188 kB / 1.403 GB, free: 5.129 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.4313, allocations: 4 kB / 1.403 GB, free: 5.125 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002748/0.4341, allocations: 1.493 MB / 1.404 GB, free: 3.562 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.4341, allocations: 288 / 1.404 GB, free: 3.562 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001822/0.4343, allocations: 40.16 kB / 1.404 GB, free: 3.523 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000956/0.4352, allocations: 315 kB / 1.405 GB, free: 3.203 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.061e-05/0.4353, allocations: 12 kB / 1.405 GB, free: 3.191 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007853/0.4431, allocations: 6.923 MB / 1.412 GB, free: 11.86 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.4431, allocations: 8.109 kB / 1.412 GB, free: 11.85 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001831/0.445, allocations: 0.9835 MB / 1.413 GB, free: 10.82 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003089/0.4453, allocations: 91.61 kB / 1.413 GB, free: 10.73 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.271e-05/0.4453, allocations: 12 kB / 1.413 GB, free: 10.72 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002734/0.4456, allocations: 23.92 kB / 1.413 GB, free: 10.7 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.4457, allocations: 43.92 kB / 1.413 GB, free: 10.65 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/0.4458, allocations: 12 kB / 1.413 GB, free: 10.64 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.000354/0.4461, allocations: 290.9 kB / 1.413 GB, free: 10.36 MB / 1.107 GB Notification: Performance of sort global known variables: time 9e-08/0.4461, allocations: 0 / 1.413 GB, free: 10.36 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.0008102/0.4469, allocations: 192 kB / 1.413 GB, free: 10.17 MB / 1.107 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.0001555/0.4471, allocations: 111.5 kB / 1.413 GB, free: 10.05 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.001942/0.449, allocations: 1.16 MB / 1.414 GB, free: 8.844 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.449, allocations: 0 / 1.414 GB, free: 8.844 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.001267/0.4503, allocations: 0.8305 MB / 1.415 GB, free: 7.961 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009854/0.4513, allocations: 194.3 kB / 1.415 GB, free: 7.781 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.4535, allocations: 1.32 MB / 1.417 GB, free: 6.41 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004583/0.4539, allocations: 398.9 kB / 1.417 GB, free: 5.996 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.454, allocations: 35.44 kB / 1.417 GB, free: 5.961 MB / 1.107 GB Notification: Performance of SimCode: time 1.223e-06/0.454, allocations: 0 / 1.417 GB, free: 5.961 MB / 1.107 GB Notification: Performance of Templates: time 0.02384/0.4779, allocations: 18.84 MB / 1.435 GB, free: 3.152 MB / 1.123 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.122054586187005]