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.001553/0.001553, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001942/0.001942, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.381/1.381, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.805/2.805, allocations: 472.6 MB / 0.7451 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 65.89 kB / 0.9121 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.332, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04497/0.377, allocations: 37.97 MB / 1.105 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01938/0.3964, allocations: 10.99 MB / 1.116 GB, free: 9.25 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004009/0.4005, allocations: 159.2 kB / 1.116 GB, free: 9.094 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.01138/0.4119, allocations: 4.352 MB / 1.12 GB, free: 4.73 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.007614/0.4196, allocations: 2.223 MB / 1.123 GB, free: 2.496 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.006496/0.4261, allocations: 2.17 MB / 1.125 GB, free: 336 kB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.01171/0.4378, allocations: 9.288 MB / 1.134 GB, free: 7.012 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0171/0.4549, allocations: 11.35 MB / 1.145 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006742/0.4617, allocations: 3.973 MB / 1.149 GB, free: 7.562 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006876/0.4686, allocations: 4.506 MB / 1.153 GB, free: 3.043 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.00263/0.4713, allocations: 0.8203 MB / 1.154 GB, free: 2.223 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004749/0.476, allocations: 1.596 MB / 1.156 GB, free: 0.625 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.006053/0.4821, allocations: 3.15 MB / 1.159 GB, free: 13.47 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.008031/0.4902, allocations: 3.653 MB / 1.162 GB, free: 9.801 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.01324/0.5034, allocations: 12.24 MB / 1.174 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.5035, allocations: 0 / 1.174 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.623e-06/0.5035, allocations: 0 / 1.174 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0003225/0.5038, allocations: 0 / 1.174 GB, free: 13.53 MB / 0.9356 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.01394/0.5178, allocations: 6.318 MB / 1.18 GB, free: 7.137 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.5178, allocations: 11.97 kB / 1.18 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005025/0.5229, allocations: 1.063 MB / 1.181 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006001/0.5289, allocations: 3.419 MB / 1.185 GB, free: 2.582 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002802/0.5292, allocations: 427.7 kB / 1.185 GB, free: 2.164 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001077/0.5303, allocations: 0.551 MB / 1.186 GB, free: 1.613 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01681/0.5471, allocations: 9.377 MB / 1.195 GB, free: 7.902 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001183/0.5472, allocations: 19.88 kB / 1.195 GB, free: 7.883 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006263/0.5479, allocations: 248 kB / 1.195 GB, free: 7.641 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005816/0.5485, allocations: 422.9 kB / 1.195 GB, free: 7.227 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01225/0.5607, allocations: 7.123 MB / 1.202 GB, free: 96 kB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0439/0.6046, allocations: 41.31 MB / 1.243 GB, free: 3.043 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.6076/1.212, allocations: 3.098 MB / 1.246 GB, free: 163.5 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003719/1.216, allocations: 2.134 MB / 1.248 GB, free: 163.5 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000121/1.216, allocations: 24.05 kB / 1.248 GB, free: 163.5 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/1.216, allocations: 61.64 kB / 1.248 GB, free: 163.4 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=209): time 3.817e-06/1.216, allocations: 0 / 1.248 GB, free: 163.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=212): time 0.02375/1.24, allocations: 10.56 MB / 1.258 GB, free: 161.6 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/1.24, allocations: 78.02 kB / 1.258 GB, free: 161.5 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002907/1.243, allocations: 2.007 MB / 1.26 GB, free: 160.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002087/1.243, allocations: 65.2 kB / 1.26 GB, free: 160.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001558/1.245, allocations: 2.402 MB / 1.263 GB, free: 158.8 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00081/1.246, allocations: 0.728 MB / 1.263 GB, free: 158.3 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008309/1.246, allocations: 484.3 kB / 1.264 GB, free: 158 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.928e-05/1.247, allocations: 301.8 kB / 1.264 GB, free: 157.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002406/1.249, allocations: 1.37 MB / 1.265 GB, free: 157.2 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002963/1.252, allocations: 2.103 MB / 1.268 GB, free: 155.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005313/1.257, allocations: 3.769 MB / 1.271 GB, free: 153.6 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.047e-05/1.257, allocations: 11.97 kB / 1.271 GB, free: 153.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008722/1.266, allocations: 5.061 MB / 1.276 GB, free: 151.6 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.994e-05/1.266, allocations: 19.36 kB / 1.276 GB, free: 151.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.361e-05/1.266, allocations: 22.5 kB / 1.276 GB, free: 151.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003844/1.27, allocations: 1.6 MB / 1.278 GB, free: 151.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/1.272, allocations: 458.5 kB / 1.278 GB, free: 151.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0201/1.292, allocations: 18.58 MB / 1.296 GB, free: 139.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002489/1.294, allocations: 148.5 kB / 1.296 GB, free: 139.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000243/1.295, allocations: 108.7 kB / 1.297 GB, free: 139.8 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.00308/1.298, allocations: 1.952 MB / 1.298 GB, free: 138.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006412/1.298, allocations: 287.2 kB / 1.299 GB, free: 138.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00602/1.304, allocations: 4.452 MB / 1.303 GB, free: 136.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/1.305, allocations: 19.81 kB / 1.303 GB, free: 136.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.081e-05/1.305, allocations: 16.91 kB / 1.303 GB, free: 136.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.858e-05/1.305, allocations: 11.95 kB / 1.303 GB, free: 136.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01323/1.318, allocations: 9.665 MB / 1.313 GB, free: 131 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/1.318, allocations: 3.906 kB / 1.313 GB, free: 131 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009149/1.319, allocations: 227.9 kB / 1.313 GB, free: 130.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002891/1.322, allocations: 1.437 MB / 1.314 GB, free: 130.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001299/1.322, allocations: 47.23 kB / 1.314 GB, free: 130.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01703/1.339, allocations: 18.59 MB / 1.332 GB, free: 112 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/1.339, allocations: 4 kB / 1.332 GB, free: 112 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006145/1.345, allocations: 4.535 MB / 1.337 GB, free: 107.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001197/1.346, allocations: 0.6382 MB / 1.337 GB, free: 106.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003739/1.347, allocations: 39.56 kB / 1.338 GB, free: 106.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/1.348, allocations: 119.8 kB / 1.338 GB, free: 106.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004527/1.348, allocations: 189.4 kB / 1.338 GB, free: 106.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/1.348, allocations: 56 kB / 1.338 GB, free: 106.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001405/1.35, allocations: 1.319 MB / 1.339 GB, free: 105 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.35, allocations: 0 / 1.339 GB, free: 105 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003089/1.353, allocations: 1.137 MB / 1.34 GB, free: 103.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.0002725/1.353, allocations: 167.5 kB / 1.34 GB, free: 103.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.008026/1.361, allocations: 5.903 MB / 1.346 GB, free: 97.75 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/1.361, allocations: 0 / 1.346 GB, free: 97.75 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003601/1.365, allocations: 2.932 MB / 1.349 GB, free: 94.77 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003534/1.369, allocations: 0.8941 MB / 1.35 GB, free: 93.92 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01778/1.386, allocations: 9.393 MB / 1.359 GB, free: 84.46 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003697/1.39, allocations: 3.69 MB / 1.363 GB, free: 80.74 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002097/1.392, allocations: 0.5577 MB / 1.363 GB, free: 80.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003732/1.393, allocations: 147.4 kB / 1.363 GB, free: 80.05 MB / 0.9981 GB Notification: Performance of SimCode: time 1.393e-06/1.393, allocations: 0 / 1.363 GB, free: 80.05 MB / 0.9981 GB Notification: Performance of Templates: time 0.0782/1.471, allocations: 52.88 MB / 1.415 GB, free: 27.94 MB / 0.9981 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