Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001575/0.001575, allocations: 108.6 kB / 16.41 MB, free: 6.027 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.001875/0.001875, allocations: 188.7 kB / 17.34 MB, free: 5.633 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.437/1.437, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.304/2.304, allocations: 390.2 MB / 0.6655 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 64.08 kB / 0.9516 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.023/1.025, allocations: 140.4 MB / 1.089 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04881/1.074, allocations: 37.96 MB / 1.126 GB, free: 11.92 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02553/1.099, allocations: 10.98 MB / 1.136 GB, free: 4.359 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006926/1.106, allocations: 160.9 kB / 1.137 GB, free: 4.309 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.01386/1.12, allocations: 4.358 MB / 1.141 GB, free: 1.664 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.009095/1.129, allocations: 2.218 MB / 1.143 GB, free: 288 kB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.007728/1.137, allocations: 2.173 MB / 1.145 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01558/1.152, allocations: 9.281 MB / 1.154 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0208/1.173, allocations: 11.27 MB / 1.165 GB, free: 6.25 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009495/1.183, allocations: 4.047 MB / 1.169 GB, free: 4.371 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009674/1.193, allocations: 4.516 MB / 1.174 GB, free: 1.594 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.003557/1.196, allocations: 0.8217 MB / 1.174 GB, free: 1.594 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00643/1.203, allocations: 1.587 MB / 1.176 GB, free: 1.188 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.006518/1.209, allocations: 3.144 MB / 1.179 GB, free: 15.16 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.01003/1.219, allocations: 3.658 MB / 1.183 GB, free: 12.6 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.01813/1.237, allocations: 12.32 MB / 1.195 GB, free: 1.508 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/1.237, allocations: 4 kB / 1.195 GB, free: 1.504 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.914e-06/1.237, allocations: 0 / 1.195 GB, free: 1.504 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0003962/1.238, allocations: 0 / 1.195 GB, free: 1.504 MB / 0.92 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.01841/1.256, allocations: 6.322 MB / 1.201 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/1.256, allocations: 12.02 kB / 1.201 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006086/1.262, allocations: 1.067 MB / 1.202 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007608/1.27, allocations: 3.606 MB / 1.205 GB, free: 6.363 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004187/1.27, allocations: 431.7 kB / 1.206 GB, free: 5.941 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00183/1.272, allocations: 0.5433 MB / 1.206 GB, free: 5.398 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02037/1.293, allocations: 9.374 MB / 1.215 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002137/1.293, allocations: 23.72 kB / 1.215 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001473/1.294, allocations: 248 kB / 1.216 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006292/1.295, allocations: 426.9 kB / 1.216 GB, free: 11.01 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01485/1.31, allocations: 7.12 MB / 1.223 GB, free: 3.879 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04951/1.359, allocations: 41 MB / 1.263 GB, free: 7.137 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004847/1.364, allocations: 3.112 MB / 1.266 GB, free: 4.008 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003167/1.367, allocations: 2.149 MB / 1.268 GB, free: 1.867 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00016/1.368, allocations: 22 kB / 1.268 GB, free: 1.848 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.124e-05/1.368, allocations: 60.56 kB / 1.268 GB, free: 1.777 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=209): time 6.322e-06/1.368, allocations: 0 / 1.268 GB, free: 1.777 MB / 0.9981 GB Notification: Performance of matching and sorting (n=212): time 0.02523/1.393, allocations: 10.55 MB / 1.279 GB, free: 7.125 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/1.393, allocations: 81.33 kB / 1.279 GB, free: 7.035 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003172/1.396, allocations: 2.002 MB / 1.281 GB, free: 5.016 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002272/1.397, allocations: 61.7 kB / 1.281 GB, free: 4.949 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001513/1.398, allocations: 2.408 MB / 1.283 GB, free: 2.508 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007123/1.399, allocations: 0.7279 MB / 1.284 GB, free: 1.77 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000853/1.4, allocations: 481.2 kB / 1.284 GB, free: 1.293 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001034/1.4, allocations: 305.1 kB / 1.284 GB, free: 0.9922 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002033/1.402, allocations: 1.372 MB / 1.286 GB, free: 15.62 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002502/1.404, allocations: 2.112 MB / 1.288 GB, free: 13.19 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004835/1.409, allocations: 3.762 MB / 1.292 GB, free: 9.113 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.86e-05/1.409, allocations: 4 kB / 1.292 GB, free: 9.109 MB / 1.029 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008515/1.418, allocations: 5.072 MB / 1.297 GB, free: 4.012 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.827e-05/1.418, allocations: 18.69 kB / 1.297 GB, free: 3.996 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.505e-05/1.418, allocations: 28 kB / 1.297 GB, free: 3.969 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003721/1.422, allocations: 1.59 MB / 1.298 GB, free: 2.371 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001696/1.423, allocations: 455.2 kB / 1.299 GB, free: 1.926 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02409/1.447, allocations: 18.57 MB / 1.317 GB, free: 14.79 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002319/1.45, allocations: 143.9 kB / 1.317 GB, free: 14.65 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004248/1.45, allocations: 108 kB / 1.317 GB, free: 14.54 MB / 1.061 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.003594/1.454, allocations: 1.949 MB / 1.319 GB, free: 12.58 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007318/1.455, allocations: 288.7 kB / 1.319 GB, free: 12.3 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007754/1.462, allocations: 4.455 MB / 1.323 GB, free: 7.812 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.237e-05/1.462, allocations: 20 kB / 1.323 GB, free: 7.793 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.355e-05/1.462, allocations: 19.94 kB / 1.324 GB, free: 7.773 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.279e-05/1.462, allocations: 7.969 kB / 1.324 GB, free: 7.766 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01866/1.481, allocations: 9.668 MB / 1.333 GB, free: 13.95 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/1.481, allocations: 7.938 kB / 1.333 GB, free: 13.94 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009814/1.482, allocations: 223.7 kB / 1.333 GB, free: 13.72 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003412/1.486, allocations: 1.438 MB / 1.335 GB, free: 12.27 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001624/1.486, allocations: 40 kB / 1.335 GB, free: 12.23 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02314/1.509, allocations: 18.56 MB / 1.353 GB, free: 9.113 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.509, allocations: 4 kB / 1.353 GB, free: 9.109 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007532/1.516, allocations: 4.54 MB / 1.357 GB, free: 4.484 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001511/1.518, allocations: 0.6342 MB / 1.358 GB, free: 3.828 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006231/1.519, allocations: 40 kB / 1.358 GB, free: 3.789 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001531/1.52, allocations: 115.9 kB / 1.358 GB, free: 3.676 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004708/1.521, allocations: 189.3 kB / 1.358 GB, free: 3.488 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001533/1.521, allocations: 56 kB / 1.358 GB, free: 3.434 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.002168/1.523, allocations: 1.319 MB / 1.359 GB, free: 2.105 MB / 1.092 GB Notification: Performance of sort global known variables: time 2.51e-07/1.523, allocations: 0 / 1.359 GB, free: 2.105 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.003557/1.527, allocations: 1.137 MB / 1.361 GB, free: 0.9688 MB / 1.092 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.00033/1.527, allocations: 167 kB / 1.361 GB, free: 0.7969 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.007416/1.534, allocations: 4.715 MB / 1.365 GB, free: 12.03 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 6.762e-06/1.534, allocations: 0 / 1.365 GB, free: 12.03 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.004589/1.539, allocations: 2.934 MB / 1.368 GB, free: 9.047 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004242/1.543, allocations: 0.8877 MB / 1.369 GB, free: 8.18 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0205/1.564, allocations: 10.04 MB / 1.379 GB, free: 14.05 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005939/1.57, allocations: 3.792 MB / 1.383 GB, free: 10.22 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008335/1.571, allocations: 159.4 kB / 1.383 GB, free: 10.07 MB / 1.123 GB Notification: Performance of SimCode: time 2.215e-06/1.571, allocations: 0 / 1.383 GB, free: 10.07 MB / 1.123 GB Notification: Performance of Templates: time 0.1882/1.759, allocations: 172.1 MB / 1.551 GB, free: 14.04 MB / 1.295 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches