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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 106.2 kB / 16.46 MB, free: 6.512 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 198.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.139/3.139, allocations: 496.1 MB / 0.7801 GB, free: 33.33 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002047/0.002047, allocations: 69.02 kB / 1.133 GB, free: 34.12 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3499, allocations: 173.7 MB / 1.303 GB, free: 2.605 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04926/0.3992, allocations: 38.58 MB / 1.34 GB, free: 11.9 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.02022/0.4194, allocations: 11.11 MB / 1.351 GB, free: 0.7539 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003162/0.4226, allocations: 159.2 kB / 1.351 GB, free: 0.5977 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.01147/0.434, allocations: 4.435 MB / 1.356 GB, free: 12.15 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.006708/0.4407, allocations: 2.332 MB / 1.358 GB, free: 9.809 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.005928/0.4467, allocations: 2.159 MB / 1.36 GB, free: 7.648 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.01263/0.4593, allocations: 9.276 MB / 1.369 GB, free: 14.34 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01249/0.4718, allocations: 8.549 MB / 1.377 GB, free: 5.684 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006546/0.4783, allocations: 4.047 MB / 1.381 GB, free: 1.625 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007783/0.4861, allocations: 4.751 MB / 1.386 GB, free: 12.86 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.002509/0.4886, allocations: 0.8242 MB / 1.387 GB, free: 12.04 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004214/0.4928, allocations: 1.615 MB / 1.388 GB, free: 10.42 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.004205/0.497, allocations: 3.227 MB / 1.392 GB, free: 7.184 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.006029/0.5031, allocations: 3.653 MB / 1.395 GB, free: 3.516 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.0158/0.5189, allocations: 12.35 MB / 1.407 GB, free: 7.125 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 1.105e-05/0.5189, allocations: 0 / 1.407 GB, free: 7.125 MB / 1.107 GB Notification: Performance of FrontEnd: time 2.164e-06/0.5189, allocations: 0 / 1.407 GB, free: 7.125 MB / 1.107 GB Notification: Performance of Transformations before backend: time 0.0004939/0.5194, allocations: 0 / 1.407 GB, free: 7.125 MB / 1.107 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.01897/0.5384, allocations: 6.471 MB / 1.414 GB, free: 0.5742 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.5384, allocations: 8.031 kB / 1.414 GB, free: 0.5664 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007068/0.5455, allocations: 1.098 MB / 1.415 GB, free: 15.46 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009149/0.5546, allocations: 3.628 MB / 1.418 GB, free: 11.79 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005035/0.5551, allocations: 423.8 kB / 1.419 GB, free: 11.37 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002272/0.5574, allocations: 0.5432 MB / 1.419 GB, free: 10.83 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02526/0.5826, allocations: 9.377 MB / 1.428 GB, free: 1.117 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000266/0.5829, allocations: 23.8 kB / 1.428 GB, free: 1.094 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001982/0.5849, allocations: 248 kB / 1.429 GB, free: 0.8516 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007639/0.5857, allocations: 418.9 kB / 1.429 GB, free: 452 kB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01629/0.6019, allocations: 7.123 MB / 1.436 GB, free: 9.309 MB / 1.139 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05742/0.6594, allocations: 41.07 MB / 1.476 GB, free: 12.5 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005493/0.6649, allocations: 2.908 MB / 1.479 GB, free: 9.578 MB / 1.186 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003605/0.6685, allocations: 1.946 MB / 1.481 GB, free: 7.633 MB / 1.186 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002179/0.6687, allocations: 22 kB / 1.481 GB, free: 7.609 MB / 1.186 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.869e-05/0.6688, allocations: 60.56 kB / 1.481 GB, free: 7.543 MB / 1.186 GB Notification: Performance of pre-optimization done (n=209): time 4.128e-06/0.6688, allocations: 0 / 1.481 GB, free: 7.543 MB / 1.186 GB Notification: Performance of matching and sorting (n=212): time 0.02943/0.6982, allocations: 10.58 MB / 1.491 GB, free: 12.87 MB / 1.201 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.544e-05/0.6983, allocations: 73.41 kB / 1.491 GB, free: 12.78 MB / 1.201 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003819/0.7021, allocations: 2.006 MB / 1.493 GB, free: 10.76 MB / 1.201 GB Notification: Performance of collectPreVariables (initialization): time 0.0003599/0.7024, allocations: 61.7 kB / 1.493 GB, free: 10.69 MB / 1.201 GB Notification: Performance of collectInitialEqns (initialization): time 0.002092/0.7045, allocations: 2.482 MB / 1.496 GB, free: 8.184 MB / 1.201 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009915/0.7055, allocations: 0.7669 MB / 1.496 GB, free: 7.41 MB / 1.201 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001013/0.7065, allocations: 481.5 kB / 1.497 GB, free: 6.934 MB / 1.201 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.7067, allocations: 301.1 kB / 1.497 GB, free: 6.637 MB / 1.201 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002348/0.709, allocations: 1.376 MB / 1.499 GB, free: 5.258 MB / 1.201 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002861/0.7119, allocations: 2.108 MB / 1.501 GB, free: 2.836 MB / 1.201 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005431/0.7173, allocations: 3.77 MB / 1.504 GB, free: 14.76 MB / 1.217 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.04e-05/0.7173, allocations: 4 kB / 1.504 GB, free: 14.75 MB / 1.217 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.009132/0.7265, allocations: 5.023 MB / 1.509 GB, free: 9.707 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 4.162e-05/0.7265, allocations: 16 kB / 1.509 GB, free: 9.691 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.742e-05/0.7266, allocations: 24 kB / 1.509 GB, free: 9.668 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004222/0.7308, allocations: 1.58 MB / 1.511 GB, free: 8.078 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002124/0.7329, allocations: 455.2 kB / 1.511 GB, free: 7.633 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0264/0.7593, allocations: 18.6 MB / 1.529 GB, free: 4.469 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002691/0.762, allocations: 143.9 kB / 1.529 GB, free: 4.328 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005122/0.7625, allocations: 112 kB / 1.53 GB, free: 4.219 MB / 1.232 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.00394/0.7664, allocations: 1.941 MB / 1.531 GB, free: 2.266 MB / 1.232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008789/0.7673, allocations: 302.5 kB / 1.532 GB, free: 1.969 MB / 1.232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008312/0.7756, allocations: 4.396 MB / 1.536 GB, free: 13.54 MB / 1.248 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.476e-05/0.7757, allocations: 31.98 kB / 1.536 GB, free: 13.51 MB / 1.248 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.055e-05/0.7757, allocations: 16 kB / 1.536 GB, free: 13.49 MB / 1.248 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-05/0.7757, allocations: 15.95 kB / 1.536 GB, free: 13.48 MB / 1.248 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01876/0.7945, allocations: 9.617 MB / 1.546 GB, free: 3.715 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.149e-05/0.7945, allocations: 7.984 kB / 1.546 GB, free: 3.707 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.7956, allocations: 231.7 kB / 1.546 GB, free: 3.48 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003646/0.7993, allocations: 1.427 MB / 1.547 GB, free: 2.043 MB / 1.248 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001788/0.7995, allocations: 40 kB / 1.547 GB, free: 2.004 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02572/0.8252, allocations: 18.58 MB / 1.565 GB, free: 14.86 MB / 1.279 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.117e-05/0.8252, allocations: 11.94 kB / 1.565 GB, free: 14.85 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008795/0.834, allocations: 4.507 MB / 1.57 GB, free: 10.25 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001738/0.8357, allocations: 0.6474 MB / 1.57 GB, free: 9.582 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007514/0.8365, allocations: 40 kB / 1.57 GB, free: 9.543 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001703/0.8382, allocations: 115.9 kB / 1.571 GB, free: 9.43 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005367/0.8387, allocations: 185.6 kB / 1.571 GB, free: 9.25 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001609/0.8389, allocations: 60 kB / 1.571 GB, free: 9.191 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.002141/0.841, allocations: 1.315 MB / 1.572 GB, free: 7.867 MB / 1.279 GB Notification: Performance of sort global known variables: time 8e-08/0.841, allocations: 0 / 1.572 GB, free: 7.867 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.003576/0.8446, allocations: 1.148 MB / 1.573 GB, free: 6.719 MB / 1.279 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.0003524/0.8449, allocations: 163 kB / 1.573 GB, free: 6.551 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.007749/0.8527, allocations: 4.536 MB / 1.578 GB, free: 1.965 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/0.8527, allocations: 4 kB / 1.578 GB, free: 1.961 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.004814/0.8575, allocations: 2.804 MB / 1.58 GB, free: 15.1 MB / 1.295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003844/0.8614, allocations: 0.8819 MB / 1.581 GB, free: 14.23 MB / 1.295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01742/0.8788, allocations: 9.44 MB / 1.591 GB, free: 4.699 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004551/0.8833, allocations: 3.694 MB / 1.594 GB, free: 0.9688 MB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.001982/0.8853, allocations: 0.5518 MB / 1.595 GB, free: 420 kB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004407/0.8858, allocations: 151.4 kB / 1.595 GB, free: 268 kB / 1.295 GB Notification: Performance of SimCode: time 9.92e-07/0.8858, allocations: 0 / 1.595 GB, free: 268 kB / 1.295 GB Notification: Performance of Templates: time 0.7583/1.644, allocations: 52.25 MB / 1.646 GB, free: 273.5 MB / 1.311 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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) [Timeout 400] 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.334797522984445]