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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.006113/0.006113, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.001374/0.001374, allocations: 193.5 kB / 16.79 MB, free: 5.809 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.374/1.374, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.761/2.761, allocations: 461.8 MB / 0.7348 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 64.97 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3531, allocations: 157.4 MB / 1.053 GB, free: 8.297 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04357/0.3967, allocations: 37.61 MB / 1.089 GB, free: 2.562 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02017/0.4169, allocations: 10.95 MB / 1.1 GB, free: 7.582 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004696/0.4216, allocations: 143.2 kB / 1.1 GB, free: 7.441 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.01099/0.4327, allocations: 4.075 MB / 1.104 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.007382/0.4401, allocations: 2.088 MB / 1.106 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.006263/0.4464, allocations: 1.971 MB / 1.108 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.01507/0.4615, allocations: 13.18 MB / 1.121 GB, free: 2.078 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02048/0.482, allocations: 12.43 MB / 1.133 GB, free: 5.535 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006538/0.4885, allocations: 3.41 MB / 1.137 GB, free: 2.113 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008822/0.4974, allocations: 4.592 MB / 1.141 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.003658/0.5011, allocations: 0.5586 MB / 1.142 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006541/0.5077, allocations: 1.552 MB / 1.143 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.005561/0.5133, allocations: 2.888 MB / 1.146 GB, free: 8.5 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.008167/0.5215, allocations: 3.356 MB / 1.149 GB, free: 5.129 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.01273/0.5342, allocations: 10.46 MB / 1.159 GB, free: 10.65 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 9.248e-06/0.5343, allocations: 7.938 kB / 1.159 GB, free: 10.64 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.653e-06/0.5343, allocations: 0 / 1.159 GB, free: 10.64 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0004786/0.5348, allocations: 0 / 1.159 GB, free: 10.64 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.01944/0.5542, allocations: 6.314 MB / 1.166 GB, free: 4.254 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.5543, allocations: 12.03 kB / 1.166 GB, free: 4.242 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006776/0.5611, allocations: 1.063 MB / 1.167 GB, free: 3.172 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008598/0.5697, allocations: 3.427 MB / 1.17 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004481/0.5702, allocations: 427.7 kB / 1.17 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002356/0.5726, allocations: 0.5393 MB / 1.171 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02188/0.5945, allocations: 9.377 MB / 1.18 GB, free: 5.02 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001697/0.5947, allocations: 23.86 kB / 1.18 GB, free: 4.996 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001384/0.5961, allocations: 252 kB / 1.18 GB, free: 4.75 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006132/0.5967, allocations: 418.9 kB / 1.181 GB, free: 4.34 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01534/0.6121, allocations: 7.12 MB / 1.188 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04978/0.6619, allocations: 41.31 MB / 1.228 GB, free: 160 kB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004841/0.6668, allocations: 3.108 MB / 1.231 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003105/0.6699, allocations: 2.133 MB / 1.233 GB, free: 10.91 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001464/0.6701, allocations: 26 kB / 1.233 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.44e-05/0.6702, allocations: 60.56 kB / 1.233 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=209): time 3.998e-06/0.6702, allocations: 0 / 1.233 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of matching and sorting (n=212): time 0.02407/0.6943, allocations: 10.55 MB / 1.244 GB, free: 168 kB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/0.6943, allocations: 77.34 kB / 1.244 GB, free: 80 kB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5847/1.279, allocations: 1.996 MB / 1.246 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003958/1.28, allocations: 67.61 kB / 1.246 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001278/1.281, allocations: 2.403 MB / 1.248 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007508/1.282, allocations: 0.7348 MB / 1.249 GB, free: 172.6 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007545/1.282, allocations: 479.5 kB / 1.249 GB, free: 172.6 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.896e-05/1.282, allocations: 301.9 kB / 1.249 GB, free: 172.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001762/1.284, allocations: 1.373 MB / 1.251 GB, free: 172.3 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002243/1.286, allocations: 2.105 MB / 1.253 GB, free: 171.4 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004343/1.291, allocations: 3.767 MB / 1.257 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.416e-05/1.291, allocations: 9.875 kB / 1.257 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008847/1.3, allocations: 5.064 MB / 1.262 GB, free: 170 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.284e-05/1.3, allocations: 19.5 kB / 1.262 GB, free: 170 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-05/1.3, allocations: 22.12 kB / 1.262 GB, free: 170 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00393/1.304, allocations: 1.573 MB / 1.263 GB, free: 170 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002034/1.306, allocations: 451.1 kB / 1.264 GB, free: 169.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02107/1.327, allocations: 17.06 MB / 1.28 GB, free: 159.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002394/1.329, allocations: 149.5 kB / 1.28 GB, free: 159.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003571/1.33, allocations: 111.9 kB / 1.28 GB, free: 159.6 MB / 0.9981 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.003404/1.333, allocations: 1.948 MB / 1.282 GB, free: 158.8 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006513/1.334, allocations: 288.4 kB / 1.283 GB, free: 158.6 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006884/1.341, allocations: 4.453 MB / 1.287 GB, free: 156.8 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.229e-05/1.341, allocations: 21.36 kB / 1.287 GB, free: 156.8 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.568e-05/1.341, allocations: 20.59 kB / 1.287 GB, free: 156.8 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.709e-05/1.341, allocations: 12.95 kB / 1.287 GB, free: 156.8 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01412/1.355, allocations: 9.663 MB / 1.296 GB, free: 152.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/1.355, allocations: 4.531 kB / 1.296 GB, free: 152.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009342/1.356, allocations: 242.9 kB / 1.297 GB, free: 152.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002914/1.359, allocations: 1.43 MB / 1.298 GB, free: 152 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001488/1.359, allocations: 35.84 kB / 1.298 GB, free: 152 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01655/1.376, allocations: 17.06 MB / 1.315 GB, free: 139.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/1.376, allocations: 12.56 kB / 1.315 GB, free: 139 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005891/1.381, allocations: 4.533 MB / 1.319 GB, free: 134.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001284/1.383, allocations: 0.6342 MB / 1.32 GB, free: 133.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004291/1.383, allocations: 39.94 kB / 1.32 GB, free: 133.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001234/1.384, allocations: 119.9 kB / 1.32 GB, free: 133.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004573/1.385, allocations: 192.8 kB / 1.32 GB, free: 133.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/1.385, allocations: 56 kB / 1.32 GB, free: 133.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001522/1.387, allocations: 1.319 MB / 1.322 GB, free: 132 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.8e-07/1.387, allocations: 0 / 1.322 GB, free: 132 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003041/1.39, allocations: 1.137 MB / 1.323 GB, free: 130.9 MB / 0.9981 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.0002731/1.39, allocations: 169.4 kB / 1.323 GB, free: 130.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006457/1.396, allocations: 4.691 MB / 1.327 GB, free: 126 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/1.396, allocations: 4 kB / 1.327 GB, free: 126 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.00398/1.4, allocations: 2.916 MB / 1.33 GB, free: 123 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003851/1.404, allocations: 0.8283 MB / 1.331 GB, free: 122.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01686/1.421, allocations: 12.53 MB / 1.343 GB, free: 109.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00371/1.425, allocations: 3.792 MB / 1.347 GB, free: 105.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007467/1.426, allocations: 163.4 kB / 1.347 GB, free: 105.7 MB / 0.9981 GB Notification: Performance of SimCode: time 1.042e-06/1.426, allocations: 0 / 1.347 GB, free: 105.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.1534/1.579, allocations: 171.8 MB / 1.515 GB, free: 13.98 MB / 1.076 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/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) Reference file matches