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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005067/0.005067, allocations: 99.81 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 194.9 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.534/2.534, allocations: 472.6 MB / 0.7453 GB, free: 480 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001946, allocations: 59.91 kB / 1.069 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8904/0.8924, allocations: 159.9 MB / 1.226 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04298/0.9354, allocations: 37.96 MB / 1.263 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01987/0.9553, allocations: 10.99 MB / 1.273 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004283/0.9596, allocations: 159.2 kB / 1.274 GB, free: 12.45 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.01191/0.9716, allocations: 4.358 MB / 1.278 GB, free: 8.086 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.008054/0.9797, allocations: 2.223 MB / 1.28 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.007123/0.9869, allocations: 2.171 MB / 1.282 GB, free: 3.684 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01329/1, allocations: 9.288 MB / 1.291 GB, free: 10.37 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01813/1.018, allocations: 11.25 MB / 1.302 GB, free: 15 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007211/1.026, allocations: 3.992 MB / 1.306 GB, free: 11 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008081/1.034, allocations: 4.521 MB / 1.31 GB, free: 6.461 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.002909/1.037, allocations: 0.8203 MB / 1.311 GB, free: 5.641 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005242/1.042, allocations: 1.588 MB / 1.313 GB, free: 4.051 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.005608/1.048, allocations: 3.146 MB / 1.316 GB, free: 0.8984 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.007672/1.055, allocations: 3.661 MB / 1.319 GB, free: 13.22 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.01766/1.073, allocations: 12.34 MB / 1.332 GB, free: 0.8398 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/1.073, allocations: 0 / 1.332 GB, free: 0.8398 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.783e-06/1.073, allocations: 0 / 1.332 GB, free: 0.8398 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.0004719/1.073, allocations: 0 / 1.332 GB, free: 0.8398 MB / 1.045 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.01896/1.092, allocations: 6.467 MB / 1.338 GB, free: 10.29 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/1.093, allocations: 12.03 kB / 1.338 GB, free: 10.28 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007248/1.1, allocations: 1.105 MB / 1.339 GB, free: 9.172 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008858/1.109, allocations: 3.62 MB / 1.342 GB, free: 5.5 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003849/1.109, allocations: 431.7 kB / 1.343 GB, free: 5.078 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002356/1.111, allocations: 0.5393 MB / 1.343 GB, free: 4.539 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02189/1.133, allocations: 9.377 MB / 1.353 GB, free: 10.83 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001479/1.134, allocations: 19.81 kB / 1.353 GB, free: 10.81 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008808/1.134, allocations: 248 kB / 1.353 GB, free: 10.57 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005956/1.135, allocations: 422.9 kB / 1.353 GB, free: 10.15 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01584/1.151, allocations: 7.123 MB / 1.36 GB, free: 3.02 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04864/1.2, allocations: 41.07 MB / 1.4 GB, free: 6.211 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004645/1.204, allocations: 3.113 MB / 1.403 GB, free: 3.086 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002955/1.207, allocations: 2.151 MB / 1.405 GB, free: 0.9414 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001237/1.207, allocations: 22 kB / 1.405 GB, free: 0.918 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.948e-05/1.207, allocations: 60.56 kB / 1.406 GB, free: 0.8516 MB / 1.123 GB Notification: Performance of pre-optimization done (n=209): time 3.807e-06/1.207, allocations: 0 / 1.406 GB, free: 0.8516 MB / 1.123 GB Notification: Performance of matching and sorting (n=212): time 0.02403/1.232, allocations: 10.63 MB / 1.416 GB, free: 6.133 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/1.232, allocations: 81.33 kB / 1.416 GB, free: 6.039 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002574/1.234, allocations: 2.006 MB / 1.418 GB, free: 4.016 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 0.0002365/1.234, allocations: 65.7 kB / 1.418 GB, free: 3.945 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.001491/1.236, allocations: 2.47 MB / 1.42 GB, free: 1.449 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.000647/1.237, allocations: 0.7708 MB / 1.421 GB, free: 0.6719 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007376/1.237, allocations: 477.5 kB / 1.422 GB, free: 204 kB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.0001061/1.237, allocations: 313.1 kB / 1.422 GB, free: 15.89 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001942/1.239, allocations: 1.364 MB / 1.423 GB, free: 14.52 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002396/1.242, allocations: 2.116 MB / 1.425 GB, free: 12.09 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004615/1.246, allocations: 3.762 MB / 1.429 GB, free: 8.023 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.174e-05/1.246, allocations: 8 kB / 1.429 GB, free: 8.016 MB / 1.154 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007901/1.254, allocations: 5.081 MB / 1.434 GB, free: 2.91 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/1.254, allocations: 16 kB / 1.434 GB, free: 2.895 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.633e-05/1.254, allocations: 28.81 kB / 1.434 GB, free: 2.867 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00355/1.258, allocations: 1.579 MB / 1.436 GB, free: 1.277 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001665/1.26, allocations: 451.2 kB / 1.436 GB, free: 0.8359 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02361/1.283, allocations: 18.59 MB / 1.454 GB, free: 13.69 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002698/1.286, allocations: 147.9 kB / 1.454 GB, free: 13.55 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002818/1.286, allocations: 104 kB / 1.454 GB, free: 13.45 MB / 1.186 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.003243/1.29, allocations: 1.949 MB / 1.456 GB, free: 11.48 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000654/1.29, allocations: 302.2 kB / 1.457 GB, free: 11.18 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00748/1.298, allocations: 4.451 MB / 1.461 GB, free: 6.699 MB / 1.186 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.817e-05/1.298, allocations: 20 kB / 1.461 GB, free: 6.68 MB / 1.186 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.72e-05/1.298, allocations: 16 kB / 1.461 GB, free: 6.664 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.159e-05/1.298, allocations: 11.97 kB / 1.461 GB, free: 6.652 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01601/1.314, allocations: 9.672 MB / 1.47 GB, free: 12.84 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/1.314, allocations: 4 kB / 1.47 GB, free: 12.83 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/1.315, allocations: 235.6 kB / 1.471 GB, free: 12.6 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003466/1.318, allocations: 1.427 MB / 1.472 GB, free: 11.16 MB / 1.201 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001963/1.319, allocations: 40 kB / 1.472 GB, free: 11.12 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02364/1.342, allocations: 18.59 MB / 1.49 GB, free: 7.977 MB / 1.217 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.089e-05/1.342, allocations: 12.09 kB / 1.49 GB, free: 7.965 MB / 1.217 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007523/1.35, allocations: 4.561 MB / 1.495 GB, free: 3.312 MB / 1.217 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00156/1.351, allocations: 0.6436 MB / 1.495 GB, free: 2.648 MB / 1.217 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003843/1.352, allocations: 40 kB / 1.495 GB, free: 2.609 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/1.353, allocations: 119.8 kB / 1.495 GB, free: 2.492 MB / 1.217 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005439/1.354, allocations: 181.6 kB / 1.496 GB, free: 2.316 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001495/1.354, allocations: 60 kB / 1.496 GB, free: 2.258 MB / 1.217 GB Notification: Performance of sorting global known variables: time 0.001914/1.356, allocations: 1.311 MB / 1.497 GB, free: 0.9375 MB / 1.217 GB Notification: Performance of sort global known variables: time 1.31e-07/1.356, allocations: 0 / 1.497 GB, free: 0.9375 MB / 1.217 GB Notification: Performance of remove unused functions: time 0.003327/1.359, allocations: 1.145 MB / 1.498 GB, free: 15.79 MB / 1.232 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.0003099/1.359, allocations: 166.9 kB / 1.498 GB, free: 15.62 MB / 1.232 GB Notification: Performance of simCode: created initialization part: time 0.007582/1.367, allocations: 4.727 MB / 1.503 GB, free: 10.85 MB / 1.232 GB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/1.367, allocations: 4 kB / 1.503 GB, free: 10.84 MB / 1.232 GB Notification: Performance of simCode: created simulation system equations: time 0.004683/1.372, allocations: 2.918 MB / 1.506 GB, free: 7.879 MB / 1.232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003912/1.376, allocations: 0.8907 MB / 1.507 GB, free: 7.004 MB / 1.232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01597/1.392, allocations: 9.44 MB / 1.516 GB, free: 13.46 MB / 1.248 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004451/1.396, allocations: 3.69 MB / 1.519 GB, free: 9.738 MB / 1.248 GB Notification: Performance of simCode: alias equations: time 0.001905/1.398, allocations: 0.5517 MB / 1.52 GB, free: 9.18 MB / 1.248 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004134/1.399, allocations: 151.4 kB / 1.52 GB, free: 9.031 MB / 1.248 GB Notification: Performance of SimCode: time 6.21e-07/1.399, allocations: 0 / 1.52 GB, free: 9.031 MB / 1.248 GB Notification: Performance of Templates: time 0.7732/2.172, allocations: 51.66 MB / 1.571 GB, free: 305.9 MB / 1.279 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) 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) Reference file matches