Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.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.Loads.Examples.Loads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.S.1|1.|sen.S.1|2.|sen.S.2|1.|sen.S.2|2.|sen.S.3|1.|sen.S.3|2.|senSingleConn.S.1|1.|senSingleConn.S.1|2.|senSingleConn.S.2|1.|senSingleConn.S.2|2.|senSingleConn.S.3|1.|senSingleConn.S.3|2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.S.1|1.|sen.S.1|2.|sen.S.2|1.|sen.S.2|2.|sen.S.3|1.|sen.S.3|2.|senSingleConn.S.1|1.|senSingleConn.S.1|2.|senSingleConn.S.2|1.|senSingleConn.S.2|2.|senSingleConn.S.3|1.|senSingleConn.S.3|2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009565/0.0009565, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009595/0.0009599, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.719/2.719, allocations: 436.5 MB / 0.7104 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003602, allocations: 15.97 kB / 0.8708 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8025/0.8029, allocations: 153.6 MB / 1.021 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads): time 0.03999/0.8429, allocations: 33.22 MB / 1.053 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03118/0.8742, allocations: 12.79 MB / 1.066 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00445/0.8787, allocations: 91.69 kB / 1.066 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.003431/0.8821, allocations: 0.7141 MB / 1.067 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.008558/0.8907, allocations: 1.468 MB / 1.068 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.008243/0.899, allocations: 2.117 MB / 1.07 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.006952/0.906, allocations: 2.952 MB / 1.073 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01668/0.9227, allocations: 10.05 MB / 1.083 GB, free: 1.508 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003617/0.9264, allocations: 1.523 MB / 1.084 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003988/0.9304, allocations: 1.694 MB / 1.086 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.000905/0.9313, allocations: 260 kB / 1.086 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001762/0.9331, allocations: 0.5307 MB / 1.087 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.002167/0.9353, allocations: 1.828 MB / 1.088 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001338/0.9366, allocations: 0.8239 MB / 1.089 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.008617/0.9452, allocations: 7.615 MB / 1.097 GB, free: 3.199 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.9453, allocations: 0 / 1.097 GB, free: 3.199 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.364e-06/0.9453, allocations: 0 / 1.097 GB, free: 3.199 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0002766/0.9456, allocations: 0 / 1.097 GB, free: 3.199 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1156 * Number of variables: 1156 Notification: Performance of Generate backend data structure: time 0.007852/0.9534, allocations: 3.436 MB / 1.1 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.9535, allocations: 19.98 kB / 1.1 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004614/0.9581, allocations: 0.9902 MB / 1.101 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005741/0.9639, allocations: 2.159 MB / 1.103 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003591/0.9643, allocations: 324.7 kB / 1.103 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001681/0.966, allocations: 427.9 kB / 1.104 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0179/0.9839, allocations: 7.291 MB / 1.111 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001161/0.984, allocations: 19.88 kB / 1.111 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006106/0.9847, allocations: 180 kB / 1.111 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003638/0.985, allocations: 294.9 kB / 1.111 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01333/0.9984, allocations: 5.924 MB / 1.117 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04676/1.045, allocations: 32.63 MB / 1.149 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003867/1.049, allocations: 2.111 MB / 1.151 GB, free: 8.164 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002341/1.049, allocations: 110.1 kB / 1.151 GB, free: 8.039 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.713e-05/1.049, allocations: 43.5 kB / 1.151 GB, free: 7.988 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=98): time 3.065e-06/1.049, allocations: 0 / 1.151 GB, free: 7.988 MB / 0.9044 GB Notification: Performance of matching and sorting (n=101): time 0.008396/1.058, allocations: 5.227 MB / 1.156 GB, free: 2.715 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/1.058, allocations: 145.5 kB / 1.157 GB, free: 2.543 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002545/1.061, allocations: 1.441 MB / 1.158 GB, free: 1.09 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0002706/1.061, allocations: 49.7 kB / 1.158 GB, free: 1.035 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.00179/1.063, allocations: 1.86 MB / 1.16 GB, free: 15.14 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006125/1.063, allocations: 382.8 kB / 1.16 GB, free: 14.77 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/1.063, allocations: 44 kB / 1.16 GB, free: 14.72 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002242/1.064, allocations: 394 kB / 1.161 GB, free: 14.33 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001672/1.065, allocations: 1.097 MB / 1.162 GB, free: 13.23 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002392/1.068, allocations: 2.165 MB / 1.164 GB, free: 10.54 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002057/1.07, allocations: 1.521 MB / 1.165 GB, free: 9.023 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-05/1.07, allocations: 8 kB / 1.165 GB, free: 9.016 MB / 0.92 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.004773/1.075, allocations: 3.296 MB / 1.168 GB, free: 5.715 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.005366/1.08, allocations: 13.43 MB / 1.182 GB, free: 7.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.201e-05/1.08, allocations: 32 kB / 1.182 GB, free: 7.199 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.205e-05/1.08, allocations: 52.14 kB / 1.182 GB, free: 7.148 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002548/1.083, allocations: 0.62 MB / 1.182 GB, free: 6.527 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.878e-05/1.083, allocations: 67.8 kB / 1.182 GB, free: 6.461 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002004/1.085, allocations: 310.7 kB / 1.183 GB, free: 6.156 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001832/1.085, allocations: 116 kB / 1.183 GB, free: 6.043 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/1.085, allocations: 7.953 kB / 1.183 GB, free: 6.035 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004163/1.089, allocations: 2.741 MB / 1.185 GB, free: 3.297 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.924e-05/1.089, allocations: 32 kB / 1.185 GB, free: 3.266 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.53e-05/1.089, allocations: 52 kB / 1.186 GB, free: 3.215 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001745/1.091, allocations: 0.5545 MB / 1.186 GB, free: 2.66 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.153e-05/1.091, allocations: 67.78 kB / 1.186 GB, free: 2.594 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/1.093, allocations: 223 kB / 1.186 GB, free: 2.375 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/1.093, allocations: 108 kB / 1.186 GB, free: 2.27 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 154 * 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 (264): * Single equations (assignments): 264 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003324/1.096, allocations: 1.718 MB / 1.188 GB, free: 0.5391 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004423/1.097, allocations: 158.1 kB / 1.188 GB, free: 392 kB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003298/1.1, allocations: 2.23 MB / 1.19 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/1.1, allocations: 12 kB / 1.19 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/1.1, allocations: 0 / 1.19 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/1.1, allocations: 3.984 kB / 1.19 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01741/1.117, allocations: 10.97 MB / 1.201 GB, free: 2.895 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.66e-05/1.117, allocations: 12 kB / 1.201 GB, free: 2.883 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001433/1.119, allocations: 387.3 kB / 1.202 GB, free: 2.504 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-05/1.119, allocations: 16.66 kB / 1.202 GB, free: 2.488 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-05/1.119, allocations: 32 kB / 1.202 GB, free: 2.457 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.146e-05/1.119, allocations: 27.92 kB / 1.202 GB, free: 2.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-05/1.119, allocations: 15.94 kB / 1.202 GB, free: 2.414 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00398/1.123, allocations: 3.462 MB / 1.205 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/1.124, allocations: 470.7 kB / 1.205 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002253/1.124, allocations: 31.98 kB / 1.206 GB, free: 13.93 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/1.125, allocations: 167.7 kB / 1.206 GB, free: 13.76 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/1.126, allocations: 104.1 kB / 1.206 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.374e-05/1.126, allocations: 44 kB / 1.206 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001522/1.127, allocations: 0.9625 MB / 1.207 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/1.127, allocations: 0 / 1.207 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.005826/1.133, allocations: 1.125 MB / 1.208 GB, free: 11.53 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (104): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003979/1.133, allocations: 150.8 kB / 1.208 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.006401/1.14, allocations: 3.962 MB / 1.212 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.327e-05/1.14, allocations: 4 kB / 1.212 GB, free: 7.43 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001482/1.141, allocations: 1.06 MB / 1.213 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00214/1.144, allocations: 382.2 kB / 1.213 GB, free: 6 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/1.158, allocations: 8.473 MB / 1.222 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003253/1.161, allocations: 2.936 MB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.003323/1.164, allocations: 1.204 MB / 1.226 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004596/1.165, allocations: 123.4 kB / 1.226 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of SimCode: time 1.332e-06/1.165, allocations: 0 / 1.226 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of Templates: time 0.04311/1.208, allocations: 22.88 MB / 1.248 GB, free: 2.359 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches