Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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,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") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 110.7 kB / 16.41 MB, free: 6.496 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.001749/0.001749, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.402/1.402, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.652/2.652, allocations: 461.9 MB / 0.7354 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 63.91 kB / 1.055 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8646/0.8661, allocations: 157.4 MB / 1.208 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03915/0.9053, allocations: 35.13 MB / 1.243 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01987/0.9252, allocations: 9.937 MB / 1.252 GB, free: 404 kB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004191/0.9294, allocations: 147.3 kB / 1.253 GB, free: 256 kB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.01039/0.9399, allocations: 3.802 MB / 1.256 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.006994/0.9469, allocations: 2.044 MB / 1.258 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.006054/0.953, allocations: 1.956 MB / 1.26 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01115/0.9642, allocations: 7.971 MB / 1.268 GB, free: 444 kB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01688/0.9811, allocations: 9.53 MB / 1.277 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00681/0.9879, allocations: 3.42 MB / 1.281 GB, free: 3.355 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007028/0.995, allocations: 3.734 MB / 1.284 GB, free: 15.61 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.00256/0.9976, allocations: 0.6758 MB / 1.285 GB, free: 14.93 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004816/1.002, allocations: 1.444 MB / 1.286 GB, free: 13.49 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.004775/1.007, allocations: 2.631 MB / 1.289 GB, free: 10.85 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.01008/1.017, allocations: 3.089 MB / 1.292 GB, free: 7.75 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01821/1.036, allocations: 10.39 MB / 1.302 GB, free: 13.33 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 9.488e-06/1.036, allocations: 0 / 1.302 GB, free: 13.33 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.645e-06/1.036, allocations: 0 / 1.302 GB, free: 13.33 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0004101/1.036, allocations: 0 / 1.302 GB, free: 13.33 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01822/1.054, allocations: 5.405 MB / 1.307 GB, free: 7.852 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/1.054, allocations: 12.03 kB / 1.307 GB, free: 7.84 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006399/1.061, allocations: 0.9587 MB / 1.308 GB, free: 6.875 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00793/1.069, allocations: 3.178 MB / 1.311 GB, free: 3.641 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004345/1.069, allocations: 357.9 kB / 1.312 GB, free: 3.289 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002001/1.071, allocations: 468.3 kB / 1.312 GB, free: 2.832 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02067/1.092, allocations: 7.91 MB / 1.32 GB, free: 10.56 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002607/1.092, allocations: 15.88 kB / 1.32 GB, free: 10.54 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001758/1.094, allocations: 212 kB / 1.32 GB, free: 10.34 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006907/1.095, allocations: 365.1 kB / 1.32 GB, free: 9.977 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01403/1.109, allocations: 5.937 MB / 1.326 GB, free: 4.023 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04691/1.156, allocations: 35.95 MB / 1.361 GB, free: 12.84 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003739/1.16, allocations: 2.138 MB / 1.363 GB, free: 10.69 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002187/1.162, allocations: 1.488 MB / 1.365 GB, free: 9.195 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001317/1.162, allocations: 13.31 kB / 1.365 GB, free: 9.184 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.622e-05/1.162, allocations: 59.81 kB / 1.365 GB, free: 9.117 MB / 1.092 GB Notification: Performance of pre-optimization done (n=157): time 5.22e-06/1.162, allocations: 0 / 1.365 GB, free: 9.117 MB / 1.092 GB Notification: Performance of matching and sorting (n=160): time 0.0153/1.177, allocations: 7.548 MB / 1.372 GB, free: 1.297 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.098e-05/1.177, allocations: 68.72 kB / 1.372 GB, free: 1.219 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00335/1.181, allocations: 1.86 MB / 1.374 GB, free: 15.33 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.0002123/1.181, allocations: 53.7 kB / 1.374 GB, free: 15.27 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.001512/1.183, allocations: 2.123 MB / 1.376 GB, free: 13.12 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005715/1.183, allocations: 0.5546 MB / 1.377 GB, free: 12.56 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007486/1.184, allocations: 403.7 kB / 1.377 GB, free: 12.16 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001005/1.184, allocations: 301.1 kB / 1.378 GB, free: 11.86 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001659/1.186, allocations: 1.066 MB / 1.379 GB, free: 10.79 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002134/1.188, allocations: 1.756 MB / 1.38 GB, free: 8.719 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003967/1.192, allocations: 3.049 MB / 1.383 GB, free: 5.355 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.229e-05/1.192, allocations: 8 kB / 1.383 GB, free: 5.348 MB / 1.107 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006714/1.199, allocations: 3.924 MB / 1.387 GB, free: 1.375 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/1.199, allocations: 16 kB / 1.387 GB, free: 1.359 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.754e-05/1.199, allocations: 20 kB / 1.387 GB, free: 1.34 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002517/1.201, allocations: 0.9356 MB / 1.388 GB, free: 376 kB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001616/1.203, allocations: 431.2 kB / 1.389 GB, free: 15.95 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02107/1.224, allocations: 22.74 MB / 1.411 GB, free: 7.52 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002307/1.226, allocations: 123.9 kB / 1.411 GB, free: 7.398 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004317/1.227, allocations: 96.45 kB / 1.411 GB, free: 7.305 MB / 1.139 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003205/1.23, allocations: 1.654 MB / 1.413 GB, free: 5.641 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007236/1.231, allocations: 257 kB / 1.413 GB, free: 5.387 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005943/1.237, allocations: 3.256 MB / 1.416 GB, free: 2.078 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.539e-05/1.237, allocations: 16 kB / 1.416 GB, free: 2.062 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-05/1.237, allocations: 12 kB / 1.416 GB, free: 2.051 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-05/1.237, allocations: 11.97 kB / 1.416 GB, free: 2.039 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01412/1.251, allocations: 7.561 MB / 1.423 GB, free: 10.32 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/1.251, allocations: 8 kB / 1.423 GB, free: 10.32 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009554/1.252, allocations: 215.6 kB / 1.424 GB, free: 10.11 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002366/1.254, allocations: 0.8962 MB / 1.424 GB, free: 9.172 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001452/1.254, allocations: 35.94 kB / 1.425 GB, free: 9.137 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02053/1.275, allocations: 22.72 MB / 1.447 GB, free: 0.7305 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/1.275, allocations: 8.25 kB / 1.447 GB, free: 0.7227 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006127/1.281, allocations: 3.383 MB / 1.45 GB, free: 13.21 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/1.283, allocations: 0.5293 MB / 1.451 GB, free: 12.66 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006761/1.283, allocations: 35.84 kB / 1.451 GB, free: 12.63 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/1.285, allocations: 99.81 kB / 1.451 GB, free: 12.53 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004424/1.285, allocations: 141 kB / 1.451 GB, free: 12.39 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001355/1.285, allocations: 44 kB / 1.451 GB, free: 12.35 MB / 1.186 GB Notification: Performance of sorting global known variables: time 0.002156/1.288, allocations: 1.225 MB / 1.452 GB, free: 11.11 MB / 1.186 GB Notification: Performance of sort global known variables: time 3.8e-07/1.288, allocations: 0 / 1.452 GB, free: 11.11 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.003382/1.291, allocations: 0.9102 MB / 1.453 GB, free: 10.2 MB / 1.186 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003869/1.291, allocations: 151.1 kB / 1.453 GB, free: 10.05 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.006887/1.298, allocations: 4.428 MB / 1.457 GB, free: 5.473 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/1.298, allocations: 0 / 1.457 GB, free: 5.473 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.004292/1.303, allocations: 2.993 MB / 1.46 GB, free: 2.328 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004772/1.307, allocations: 0.8393 MB / 1.461 GB, free: 1.504 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01769/1.325, allocations: 8.209 MB / 1.469 GB, free: 9.199 MB / 1.201 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004595/1.33, allocations: 3.279 MB / 1.472 GB, free: 5.887 MB / 1.201 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007332/1.33, allocations: 159.4 kB / 1.473 GB, free: 5.73 MB / 1.201 GB Notification: Performance of SimCode: time 6.41e-07/1.33, allocations: 0 / 1.473 GB, free: 5.73 MB / 1.201 GB Notification: Performance of Templates: time 0.9731/2.304, allocations: 339.9 MB / 1.804 GB, free: 94.23 MB / 1.279 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches