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.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,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.007683/0.007683, allocations: 101.5 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.001786/0.001786, allocations: 191.1 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.403/1.403, 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.741/2.741, allocations: 461.9 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 66.78 kB / 0.8991 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.307, allocations: 157.4 MB / 1.053 GB, free: 8.258 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.037/0.344, allocations: 34.81 MB / 1.087 GB, free: 5.336 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01812/0.3622, allocations: 9.914 MB / 1.096 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004579/0.3669, allocations: 127.3 kB / 1.097 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.009808/0.3767, allocations: 3.549 MB / 1.1 GB, free: 7.715 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.006752/0.3835, allocations: 1.913 MB / 1.102 GB, free: 5.793 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.006077/0.3896, allocations: 1.793 MB / 1.104 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01378/0.4034, allocations: 11.2 MB / 1.115 GB, free: 8.781 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01796/0.4214, allocations: 10.7 MB / 1.125 GB, free: 13.97 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006277/0.4277, allocations: 2.876 MB / 1.128 GB, free: 11.08 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007179/0.435, allocations: 3.801 MB / 1.132 GB, free: 7.27 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.002252/0.4372, allocations: 468 kB / 1.132 GB, free: 6.812 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004586/0.4419, allocations: 1.443 MB / 1.133 GB, free: 5.367 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.005604/0.4475, allocations: 2.397 MB / 1.136 GB, free: 2.965 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.008653/0.4562, allocations: 2.847 MB / 1.139 GB, free: 108 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01136/0.4676, allocations: 8.785 MB / 1.147 GB, free: 7.301 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.4676, allocations: 0 / 1.147 GB, free: 7.301 MB / 0.9044 GB Notification: Performance of FrontEnd: time 4.529e-06/0.4676, allocations: 0 / 1.147 GB, free: 7.301 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0004157/0.4681, allocations: 7.938 kB / 1.147 GB, free: 7.293 MB / 0.9044 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.01683/0.4849, allocations: 5.397 MB / 1.152 GB, free: 1.824 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.485, allocations: 19.97 kB / 1.152 GB, free: 1.805 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005832/0.4908, allocations: 0.9548 MB / 1.153 GB, free: 0.8438 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006517/0.4974, allocations: 2.999 MB / 1.156 GB, free: 13.79 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003129/0.4977, allocations: 353.9 kB / 1.157 GB, free: 13.44 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001537/0.4993, allocations: 472.2 kB / 1.157 GB, free: 12.98 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01622/0.5155, allocations: 7.902 MB / 1.165 GB, free: 4.711 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001098/0.5157, allocations: 19.86 kB / 1.165 GB, free: 4.691 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005145/0.5162, allocations: 208 kB / 1.165 GB, free: 4.488 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004932/0.5167, allocations: 373.1 kB / 1.165 GB, free: 4.121 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01171/0.5284, allocations: 5.929 MB / 1.171 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0433/0.5718, allocations: 36.22 MB / 1.206 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00364/0.5754, allocations: 2.138 MB / 1.209 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002052/0.5775, allocations: 1.488 MB / 1.21 GB, free: 3.078 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001298/0.5777, allocations: 17.31 kB / 1.21 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.635e-05/0.5777, allocations: 55.81 kB / 1.21 GB, free: 3 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=157): time 3.857e-06/0.5777, allocations: 4 kB / 1.21 GB, free: 2.996 MB / 0.9669 GB Notification: Performance of matching and sorting (n=160): time 0.01572/0.5935, allocations: 7.544 MB / 1.217 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.775e-05/0.5936, allocations: 68.72 kB / 1.218 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003584/0.5972, allocations: 1.86 MB / 1.219 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0003324/0.5976, allocations: 53.7 kB / 1.219 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001669/0.5992, allocations: 2.123 MB / 1.221 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008398/0.6001, allocations: 0.5623 MB / 1.222 GB, free: 6.434 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000937/0.601, allocations: 395.8 kB / 1.222 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.6012, allocations: 301.1 kB / 1.223 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001914/0.6031, allocations: 1.066 MB / 1.224 GB, free: 4.672 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002539/0.6056, allocations: 1.76 MB / 1.225 GB, free: 2.594 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00442/0.6101, allocations: 3.045 MB / 1.228 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.352e-05/0.6101, allocations: 12 kB / 1.228 GB, free: 15.22 MB / 0.9981 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.007971/0.6181, allocations: 3.92 MB / 1.232 GB, free: 11.25 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.235e-05/0.6182, allocations: 16 kB / 1.232 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.932e-05/0.6182, allocations: 20 kB / 1.232 GB, free: 11.22 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002776/0.621, allocations: 0.9434 MB / 1.233 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001829/0.6229, allocations: 423.3 kB / 1.234 GB, free: 9.824 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02223/0.6451, allocations: 21.05 MB / 1.254 GB, free: 3.172 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002421/0.6476, allocations: 127.8 kB / 1.254 GB, free: 3.047 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005254/0.6482, allocations: 96 kB / 1.254 GB, free: 2.953 MB / 1.014 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.003875/0.652, allocations: 1.641 MB / 1.256 GB, free: 1.301 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009013/0.653, allocations: 253.1 kB / 1.256 GB, free: 1.051 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5808/1.234, allocations: 3.265 MB / 1.259 GB, free: 186.2 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.901e-05/1.234, allocations: 15.59 kB / 1.259 GB, free: 186.2 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.196e-05/1.234, allocations: 9.812 kB / 1.259 GB, free: 186.2 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/1.234, allocations: 6.938 kB / 1.259 GB, free: 186.2 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/1.245, allocations: 7.555 MB / 1.267 GB, free: 185.5 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.111e-05/1.245, allocations: 5.25 kB / 1.267 GB, free: 185.5 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008731/1.246, allocations: 218.1 kB / 1.267 GB, free: 185.5 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002237/1.248, allocations: 0.8899 MB / 1.268 GB, free: 185.4 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/1.248, allocations: 28.23 kB / 1.268 GB, free: 185.4 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01655/1.265, allocations: 21.03 MB / 1.288 GB, free: 170.4 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.959e-06/1.265, allocations: 5.406 kB / 1.288 GB, free: 170.4 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006246/1.271, allocations: 3.379 MB / 1.292 GB, free: 169.3 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/1.273, allocations: 0.5323 MB / 1.292 GB, free: 169.1 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003646/1.273, allocations: 32.69 kB / 1.292 GB, free: 169.1 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/1.274, allocations: 92.52 kB / 1.292 GB, free: 169.1 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004947/1.274, allocations: 139.3 kB / 1.293 GB, free: 169.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001161/1.275, allocations: 47.19 kB / 1.293 GB, free: 169 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001752/1.276, allocations: 1.222 MB / 1.294 GB, free: 168.6 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.5e-07/1.276, allocations: 6.719 kB / 1.294 GB, free: 168.6 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.003098/1.279, allocations: 0.9039 MB / 1.295 GB, free: 168.5 MB / 1.014 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.0002902/1.28, allocations: 154.8 kB / 1.295 GB, free: 168.4 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.006187/1.286, allocations: 4.413 MB / 1.299 GB, free: 165.9 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/1.286, allocations: 2.688 kB / 1.299 GB, free: 165.9 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.003912/1.29, allocations: 2.99 MB / 1.302 GB, free: 163.9 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003633/1.294, allocations: 0.7664 MB / 1.303 GB, free: 163.7 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01436/1.308, allocations: 10.34 MB / 1.313 GB, free: 157.8 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003681/1.312, allocations: 3.28 MB / 1.316 GB, free: 156.6 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006642/1.312, allocations: 153.4 kB / 1.316 GB, free: 156.6 MB / 1.014 GB Notification: Performance of SimCode: time 1.744e-06/1.312, allocations: 0 / 1.316 GB, free: 156.6 MB / 1.014 GB Notification: Performance of Templates: time 0.2599/1.572, allocations: 339.6 MB / 1.648 GB, free: 1.449 MB / 1.186 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