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.00189/0.00189, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.0021/0.0021, allocations: 222.3 kB / 23 MB, free: 4.91 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.539/1.539, 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.428/3.428, allocations: 0.5108 GB / 0.8166 GB, free: 17.86 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.003481/0.003481, allocations: 65.91 kB / 1.187 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.398/0.4015, allocations: 181.9 MB / 1.365 GB, free: 13.63 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04966/0.4512, allocations: 36.43 MB / 1.4 GB, free: 9.078 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.02199/0.4732, allocations: 11.11 MB / 1.411 GB, free: 13.94 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004145/0.4773, allocations: 206.5 kB / 1.411 GB, free: 13.74 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.01265/0.4899, allocations: 4.388 MB / 1.416 GB, free: 9.34 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.007943/0.4979, allocations: 2.328 MB / 1.418 GB, free: 7 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.006704/0.5046, allocations: 2.173 MB / 1.42 GB, free: 4.828 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.01367/0.5183, allocations: 9.281 MB / 1.429 GB, free: 11.52 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01272/0.531, allocations: 6.322 MB / 1.435 GB, free: 5.074 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008367/0.5394, allocations: 4.133 MB / 1.439 GB, free: 0.9297 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008675/0.548, allocations: 4.454 MB / 1.444 GB, free: 12.46 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.002297/0.5503, allocations: 0.8242 MB / 1.444 GB, free: 11.64 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004896/0.5552, allocations: 1.502 MB / 1.446 GB, free: 10.13 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.005756/0.561, allocations: 3.231 MB / 1.449 GB, free: 6.895 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.008534/0.5695, allocations: 2.973 MB / 1.452 GB, free: 3.91 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.01886/0.5884, allocations: 12.41 MB / 1.464 GB, free: 7.465 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.5884, allocations: 0 / 1.464 GB, free: 7.465 MB / 1.154 GB Notification: Performance of FrontEnd: time 2.134e-06/0.5884, allocations: 0 / 1.464 GB, free: 7.465 MB / 1.154 GB Notification: Performance of Transformations before backend: time 0.0003963/0.5888, allocations: 4 kB / 1.464 GB, free: 7.461 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.01917/0.6079, allocations: 6.397 MB / 1.47 GB, free: 1.004 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.608, allocations: 12.03 kB / 1.47 GB, free: 0.9922 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006731/0.6147, allocations: 1.094 MB / 1.471 GB, free: 15.89 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01018/0.6249, allocations: 3.576 MB / 1.475 GB, free: 12.25 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005113/0.6254, allocations: 427.7 kB / 1.475 GB, free: 11.84 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002142/0.6276, allocations: 0.5432 MB / 1.476 GB, free: 11.29 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02453/0.6521, allocations: 10.29 MB / 1.486 GB, free: 460 kB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002234/0.6523, allocations: 19.88 kB / 1.486 GB, free: 440 kB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001702/0.654, allocations: 248 kB / 1.486 GB, free: 192 kB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000749/0.6548, allocations: 422.9 kB / 1.486 GB, free: 15.77 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01707/0.6718, allocations: 7.12 MB / 1.493 GB, free: 8.645 MB / 1.186 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.049/0.7208, allocations: 25.36 MB / 1.518 GB, free: 14.66 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005694/0.7265, allocations: 2.894 MB / 1.521 GB, free: 11.77 MB / 1.217 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00344/0.73, allocations: 1.934 MB / 1.523 GB, free: 9.832 MB / 1.217 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001559/0.7301, allocations: 26 kB / 1.523 GB, free: 9.805 MB / 1.217 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.761e-05/0.7302, allocations: 64.5 kB / 1.523 GB, free: 9.734 MB / 1.217 GB Notification: Performance of pre-optimization done (n=209): time 5.029e-06/0.7302, allocations: 0 / 1.523 GB, free: 9.734 MB / 1.217 GB Notification: Performance of matching and sorting (n=212): time 0.02655/0.7568, allocations: 10.25 MB / 1.533 GB, free: 15.47 MB / 1.232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.995e-05/0.7568, allocations: 77.41 kB / 1.533 GB, free: 15.38 MB / 1.232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003231/0.7601, allocations: 1.833 MB / 1.535 GB, free: 13.52 MB / 1.232 GB Notification: Performance of collectPreVariables (initialization): time 0.0002215/0.7603, allocations: 69.64 kB / 1.535 GB, free: 13.44 MB / 1.232 GB Notification: Performance of collectInitialEqns (initialization): time 0.002058/0.7624, allocations: 2.481 MB / 1.537 GB, free: 10.94 MB / 1.232 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008511/0.7632, allocations: 0.7669 MB / 1.538 GB, free: 10.16 MB / 1.232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008929/0.7641, allocations: 485.5 kB / 1.539 GB, free: 9.684 MB / 1.232 GB Notification: Performance of setup shared object (initialization): time 0.0001492/0.7642, allocations: 305.1 kB / 1.539 GB, free: 9.383 MB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002286/0.7665, allocations: 1.368 MB / 1.54 GB, free: 8.012 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003174/0.7697, allocations: 2.112 MB / 1.542 GB, free: 5.586 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005643/0.7753, allocations: 3.766 MB / 1.546 GB, free: 1.512 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.222e-05/0.7754, allocations: 8 kB / 1.546 GB, free: 1.504 MB / 1.232 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.009017/0.7844, allocations: 5.004 MB / 1.551 GB, free: 12.48 MB / 1.248 GB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.7844, allocations: 16 kB / 1.551 GB, free: 12.46 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/0.7845, allocations: 20 kB / 1.551 GB, free: 12.44 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003781/0.7882, allocations: 1.588 MB / 1.552 GB, free: 10.84 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001729/0.79, allocations: 447.3 kB / 1.553 GB, free: 10.41 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02597/0.8159, allocations: 17.78 MB / 1.57 GB, free: 8.219 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002487/0.8184, allocations: 151.8 kB / 1.57 GB, free: 8.07 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004618/0.8189, allocations: 104 kB / 1.57 GB, free: 7.969 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.004025/0.8229, allocations: 1.937 MB / 1.572 GB, free: 6.02 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007903/0.8237, allocations: 286.3 kB / 1.573 GB, free: 5.738 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00848/0.8322, allocations: 4.397 MB / 1.577 GB, free: 1.309 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.257e-05/0.8322, allocations: 20 kB / 1.577 GB, free: 1.289 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.349e-05/0.8323, allocations: 16 kB / 1.577 GB, free: 1.273 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-05/0.8323, allocations: 7.969 kB / 1.577 GB, free: 1.266 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01688/0.8492, allocations: 8.354 MB / 1.585 GB, free: 8.793 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/0.8492, allocations: 4 kB / 1.585 GB, free: 8.789 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.8503, allocations: 235.6 kB / 1.585 GB, free: 8.559 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003628/0.8539, allocations: 1.431 MB / 1.587 GB, free: 7.117 MB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002038/0.8541, allocations: 40 kB / 1.587 GB, free: 7.078 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02704/0.8811, allocations: 17.78 MB / 1.604 GB, free: 4.879 MB / 1.295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.207e-05/0.8811, allocations: 11.98 kB / 1.604 GB, free: 4.867 MB / 1.295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009226/0.8904, allocations: 4.49 MB / 1.609 GB, free: 292 kB / 1.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.7823/1.673, allocations: 0.539 MB / 1.609 GB, free: 222.2 MB / 1.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007748/1.673, allocations: 40.94 kB / 1.609 GB, free: 222.2 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001526/1.675, allocations: 117.2 kB / 1.609 GB, free: 222.2 MB / 1.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006062/1.676, allocations: 188.2 kB / 1.609 GB, free: 222.2 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001606/1.676, allocations: 60.66 kB / 1.609 GB, free: 222.2 MB / 1.295 GB Notification: Performance of sorting global known variables: time 0.00209/1.678, allocations: 1.166 MB / 1.611 GB, free: 222.1 MB / 1.295 GB Notification: Performance of sort global known variables: time 7e-08/1.678, allocations: 1.719 kB / 1.611 GB, free: 222.1 MB / 1.295 GB Notification: Performance of remove unused functions: time 0.003901/1.682, allocations: 1.135 MB / 1.612 GB, free: 222.1 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.0003455/1.682, allocations: 162.9 kB / 1.612 GB, free: 222 MB / 1.295 GB Notification: Performance of simCode: created initialization part: time 0.008638/1.691, allocations: 4.549 MB / 1.616 GB, free: 221.3 MB / 1.295 GB Notification: Performance of simCode: created event and clocks part: time 1.66e-05/1.691, allocations: 2.688 kB / 1.616 GB, free: 221.3 MB / 1.295 GB Notification: Performance of simCode: created simulation system equations: time 0.004626/1.695, allocations: 2.804 MB / 1.619 GB, free: 220.7 MB / 1.295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003765/1.699, allocations: 0.8106 MB / 1.62 GB, free: 220.7 MB / 1.295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01993/1.719, allocations: 10.32 MB / 1.63 GB, free: 216.1 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005518/1.725, allocations: 3.251 MB / 1.633 GB, free: 215.3 MB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008009/1.725, allocations: 156.4 kB / 1.633 GB, free: 215.3 MB / 1.295 GB Notification: Performance of SimCode: time 1.352e-06/1.725, allocations: 3.719 kB / 1.633 GB, free: 215.3 MB / 1.295 GB Notification: Performance of Templates: time 0.1453/1.871, allocations: 173 MB / 1.802 GB, free: 62.84 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/jenkins1/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: 23.907745219767094]