Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008975/0.008975, allocations: 99.73 kB / 15.73 MB, free: 6.055 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.001726/0.001726, allocations: 194.7 kB / 16.67 MB, free: 5.977 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.784/2.784, allocations: 472.6 MB / 0.7453 GB, free: 4.562 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 67.89 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.373/0.3742, allocations: 159.9 MB / 1.226 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01667/0.3909, allocations: 14.79 MB / 1.24 GB, free: 10.31 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.7098/1.101, allocations: 10.35 MB / 1.25 GB, free: 9.652 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001757/1.103, allocations: 58.72 kB / 1.25 GB, free: 9.652 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.004775/1.107, allocations: 1.682 MB / 1.252 GB, free: 9.652 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00664/1.114, allocations: 1.817 MB / 1.254 GB, free: 9.598 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002779/1.117, allocations: 0.7595 MB / 1.254 GB, free: 9.578 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.005716/1.123, allocations: 2.744 MB / 1.257 GB, free: 9.281 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002671/1.125, allocations: 1.41 MB / 1.258 GB, free: 9.105 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003541/1.129, allocations: 1.499 MB / 1.26 GB, free: 8.965 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002799/1.132, allocations: 1.167 MB / 1.261 GB, free: 8.742 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003568/1.132, allocations: 163.1 kB / 1.261 GB, free: 8.742 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002134/1.134, allocations: 0.7872 MB / 1.262 GB, free: 8.684 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0008026/1.135, allocations: 0.6099 MB / 1.263 GB, free: 8.605 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.00138/1.136, allocations: 0.9478 MB / 1.263 GB, free: 8.32 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.004899/1.141, allocations: 2.777 MB / 1.266 GB, free: 7.898 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/1.141, allocations: 0.6562 kB / 1.266 GB, free: 7.898 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.543e-06/1.141, allocations: 1.281 kB / 1.266 GB, free: 7.898 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001039/1.142, allocations: 7.375 kB / 1.266 GB, free: 7.895 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.005951/1.147, allocations: 2.229 MB / 1.268 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/1.148, allocations: 10.06 kB / 1.268 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01271/1.16, allocations: 2.115 MB / 1.27 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004407/1.165, allocations: 1.322 MB / 1.272 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001385/1.165, allocations: 88.16 kB / 1.272 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005237/1.165, allocations: 113.2 kB / 1.272 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006867/1.172, allocations: 2.68 MB / 1.275 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.448e-05/1.172, allocations: 8.734 kB / 1.275 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002032/1.173, allocations: 49.47 kB / 1.275 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007096/1.173, allocations: 197.4 kB / 1.275 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008446/1.182, allocations: 2.794 MB / 1.278 GB, free: 4.887 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01744/1.199, allocations: 10.47 MB / 1.288 GB, free: 13.73 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007224/1.206, allocations: 2.34 MB / 1.29 GB, free: 13.09 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003499/1.21, allocations: 1.276 MB / 1.291 GB, free: 12.73 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001024/1.21, allocations: 9.219 kB / 1.291 GB, free: 12.73 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.448e-05/1.21, allocations: 48.25 kB / 1.291 GB, free: 12.68 MB / 1.014 GB Notification: Performance of pre-optimization done (n=89): time 3.256e-06/1.21, allocations: 0 / 1.291 GB, free: 12.68 MB / 1.014 GB Notification: Performance of matching and sorting (n=153): time 0.0638/1.274, allocations: 16.53 MB / 1.307 GB, free: 7.539 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.858e-05/1.274, allocations: 67.53 kB / 1.308 GB, free: 7.473 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002617/1.277, allocations: 1.177 MB / 1.309 GB, free: 6.828 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0003587/1.277, allocations: 51.98 kB / 1.309 GB, free: 6.777 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006655/1.278, allocations: 0.7593 MB / 1.309 GB, free: 6.105 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007136/1.279, allocations: 0.5343 MB / 1.31 GB, free: 5.641 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006337/1.279, allocations: 287.9 kB / 1.31 GB, free: 5.48 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001078/1.279, allocations: 310.2 kB / 1.311 GB, free: 5.176 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003668/1.283, allocations: 1.507 MB / 1.312 GB, free: 4.395 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003944/1.287, allocations: 1.784 MB / 1.314 GB, free: 3.293 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007687/1.295, allocations: 3.365 MB / 1.317 GB, free: 1.363 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.121e-05/1.295, allocations: 3.531 kB / 1.317 GB, free: 1.363 MB / 1.014 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01551/1.31, allocations: 5.283 MB / 1.322 GB, free: 14.46 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.491e-05/1.31, allocations: 13.77 kB / 1.322 GB, free: 14.46 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.081e-05/1.31, allocations: 8.547 kB / 1.322 GB, free: 14.46 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007726/1.318, allocations: 1.882 MB / 1.324 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002236/1.32, allocations: 416.2 kB / 1.325 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03199/1.352, allocations: 24.16 MB / 1.348 GB, free: 10.15 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003245/1.356, allocations: 303.5 kB / 1.348 GB, free: 10.01 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004926/1.356, allocations: 66.44 kB / 1.348 GB, free: 9.988 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001434/1.358, allocations: 470.6 kB / 1.349 GB, free: 9.652 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006932/1.358, allocations: 184.4 kB / 1.349 GB, free: 9.559 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01466/1.373, allocations: 5.33 MB / 1.354 GB, free: 4.879 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.221e-05/1.373, allocations: 19.94 kB / 1.354 GB, free: 4.859 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.591e-05/1.373, allocations: 20 kB / 1.354 GB, free: 4.84 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.964e-05/1.373, allocations: 11.91 kB / 1.354 GB, free: 4.828 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01952/1.393, allocations: 7.414 MB / 1.362 GB, free: 13.31 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/1.393, allocations: 4 kB / 1.362 GB, free: 13.3 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001867/1.395, allocations: 359.7 kB / 1.362 GB, free: 12.95 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00658/1.401, allocations: 1.701 MB / 1.364 GB, free: 11.23 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003925/1.402, allocations: 39.91 kB / 1.364 GB, free: 11.19 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0296/1.431, allocations: 23.33 MB / 1.386 GB, free: 2.762 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.675e-06/1.431, allocations: 11.92 kB / 1.386 GB, free: 2.75 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01359/1.445, allocations: 4.888 MB / 1.391 GB, free: 13.78 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001378/1.446, allocations: 0.5074 MB / 1.392 GB, free: 13.25 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006255/1.447, allocations: 28 kB / 1.392 GB, free: 13.22 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002627/1.45, allocations: 319.5 kB / 1.392 GB, free: 12.91 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005934/1.45, allocations: 149 kB / 1.392 GB, free: 12.76 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002134/1.45, allocations: 55.91 kB / 1.392 GB, free: 12.71 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.001583/1.452, allocations: 0.7938 MB / 1.393 GB, free: 11.91 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.81e-07/1.452, allocations: 0 / 1.393 GB, free: 11.91 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.002937/1.455, allocations: 0.6523 MB / 1.394 GB, free: 11.26 MB / 1.092 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003815/1.455, allocations: 151 kB / 1.394 GB, free: 11.11 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.01209/1.467, allocations: 5.153 MB / 1.399 GB, free: 5.855 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/1.468, allocations: 0 / 1.399 GB, free: 5.855 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.007658/1.475, allocations: 3.359 MB / 1.402 GB, free: 2.395 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00338/1.479, allocations: 0.5647 MB / 1.403 GB, free: 1.848 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/1.489, allocations: 4.333 MB / 1.407 GB, free: 13.47 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002119/1.491, allocations: 1.572 MB / 1.408 GB, free: 11.86 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.002022/1.493, allocations: 382.4 kB / 1.409 GB, free: 11.48 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005101/1.494, allocations: 107.4 kB / 1.409 GB, free: 11.38 MB / 1.107 GB Notification: Performance of SimCode: time 5.71e-07/1.494, allocations: 0 / 1.409 GB, free: 11.38 MB / 1.107 GB Notification: Performance of Templates: time 0.0738/1.568, allocations: 45.37 MB / 1.453 GB, free: 14.53 MB / 1.154 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches