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.001093/0.001093, allocations: 97.78 kB / 16.02 MB, free: 76 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.001225/0.001225, allocations: 185.3 kB / 16.92 MB, free: 6.688 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.436/1.436, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.862/2.862, allocations: 462.7 MB / 0.7371 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003685/0.0003682, allocations: 8.188 kB / 0.9034 GB, free: 36.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3253, allocations: 159.6 MB / 1.059 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads): time 0.04042/0.3658, allocations: 36.03 MB / 1.095 GB, free: 0.7539 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02194/0.3878, allocations: 13.64 MB / 1.108 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003585/0.3914, allocations: 95.62 kB / 1.108 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002071/0.3935, allocations: 0.5895 MB / 1.109 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.00421/0.3977, allocations: 1.354 MB / 1.11 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.005096/0.4028, allocations: 1.934 MB / 1.112 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.009706/0.4125, allocations: 9.573 MB / 1.121 GB, free: 5.5 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01717/0.4298, allocations: 11.93 MB / 1.133 GB, free: 9.461 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003425/0.4332, allocations: 1.833 MB / 1.134 GB, free: 7.621 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004716/0.438, allocations: 2.718 MB / 1.137 GB, free: 4.895 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001625/0.4396, allocations: 252 kB / 1.137 GB, free: 4.648 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003726/0.4434, allocations: 1.076 MB / 1.138 GB, free: 3.57 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.003777/0.4472, allocations: 2.003 MB / 1.14 GB, free: 1.562 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.004761/0.4519, allocations: 2.015 MB / 1.142 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.008577/0.4606, allocations: 7.691 MB / 1.15 GB, free: 7.82 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.4606, allocations: 0 / 1.15 GB, free: 7.82 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.013e-06/0.4606, allocations: 0 / 1.15 GB, free: 7.82 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0003131/0.4609, allocations: 0 / 1.15 GB, free: 7.82 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: 1156 * Number of variables: 1156 Notification: Performance of Generate backend data structure: time 0.009625/0.4706, allocations: 3.405 MB / 1.153 GB, free: 4.348 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.4706, allocations: 11.97 kB / 1.153 GB, free: 4.336 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005742/0.4764, allocations: 1.034 MB / 1.154 GB, free: 3.297 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004664/0.4811, allocations: 2.19 MB / 1.156 GB, free: 1.062 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003161/0.4814, allocations: 333 kB / 1.157 GB, free: 0.7344 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001468/0.4829, allocations: 428.3 kB / 1.157 GB, free: 324 kB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01603/0.4989, allocations: 7.405 MB / 1.164 GB, free: 8.676 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001611/0.4991, allocations: 27.78 kB / 1.164 GB, free: 8.648 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001056/0.5002, allocations: 176 kB / 1.165 GB, free: 8.477 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003789/0.5006, allocations: 290.9 kB / 1.165 GB, free: 8.191 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01336/0.514, allocations: 6.022 MB / 1.171 GB, free: 2.16 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05011/0.5641, allocations: 32.72 MB / 1.203 GB, free: 14.6 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004533/0.5687, allocations: 2.138 MB / 1.205 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002122/0.5709, allocations: 1.265 MB / 1.206 GB, free: 11.15 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002208/0.5712, allocations: 102.1 kB / 1.206 GB, free: 11.03 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.453e-05/0.5712, allocations: 47.56 kB / 1.206 GB, free: 10.97 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=98): time 4.539e-06/0.5713, allocations: 0 / 1.206 GB, free: 10.97 MB / 0.9669 GB Notification: Performance of matching and sorting (n=101): time 0.01142/0.5827, allocations: 5.282 MB / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001757/0.5829, allocations: 141.5 kB / 1.211 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002923/0.5858, allocations: 1.468 MB / 1.213 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0002951/0.5862, allocations: 49.7 kB / 1.213 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001659/0.5878, allocations: 1.863 MB / 1.215 GB, free: 2.051 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006688/0.5885, allocations: 370.9 kB / 1.215 GB, free: 1.684 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004236/0.589, allocations: 173.8 kB / 1.215 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.5891, allocations: 305.1 kB / 1.215 GB, free: 1.207 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002188/0.5913, allocations: 1.132 MB / 1.217 GB, free: 72 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003411/0.5948, allocations: 2.219 MB / 1.219 GB, free: 13.33 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005238/0.6, allocations: 3.438 MB / 1.222 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.876e-05/0.6001, allocations: 15.94 kB / 1.222 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.007219/0.6073, allocations: 3.37 MB / 1.225 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.001065/0.6084, allocations: 1.094 MB / 1.226 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.469e-05/0.6085, allocations: 32 kB / 1.227 GB, free: 4.422 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.902e-05/0.6086, allocations: 48 kB / 1.227 GB, free: 4.375 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002524/0.6111, allocations: 0.6278 MB / 1.227 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.292e-05/0.6112, allocations: 71.72 kB / 1.227 GB, free: 3.676 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002483/0.6137, allocations: 330.7 kB / 1.228 GB, free: 3.352 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003582/0.6141, allocations: 116 kB / 1.228 GB, free: 3.238 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.6141, allocations: 4 kB / 1.228 GB, free: 3.234 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005351/0.6195, allocations: 2.808 MB / 1.23 GB, free: 436 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-05/0.6196, allocations: 32 kB / 1.23 GB, free: 404 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.267e-05/0.6197, allocations: 48.84 kB / 1.231 GB, free: 356 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002076/0.6218, allocations: 0.5693 MB / 1.231 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.136e-05/0.6218, allocations: 67.78 kB / 1.231 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001831/0.6237, allocations: 239 kB / 1.231 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002562/0.624, allocations: 115.9 kB / 1.231 GB, free: 15.36 MB / 0.9981 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002948/0.6269, allocations: 1.706 MB / 1.233 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004569/0.6274, allocations: 158.1 kB / 1.233 GB, free: 13.49 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003923/0.6313, allocations: 2.258 MB / 1.235 GB, free: 11.22 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.545e-05/0.6313, allocations: 12 kB / 1.235 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.6314, allocations: 3.984 kB / 1.236 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.6314, allocations: 7.922 kB / 1.236 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.664/1.295, allocations: 10.99 MB / 1.246 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.177e-05/1.295, allocations: 11.11 kB / 1.246 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001757/1.297, allocations: 392.8 kB / 1.247 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.306e-05/1.297, allocations: 16.44 kB / 1.247 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/1.297, allocations: 32.34 kB / 1.247 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.185e-05/1.297, allocations: 22.23 kB / 1.247 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.458e-05/1.297, allocations: 17.97 kB / 1.247 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003575/1.301, allocations: 2.762 MB / 1.249 GB, free: 168.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008025/1.302, allocations: 474.9 kB / 1.25 GB, free: 168.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002296/1.302, allocations: 36.08 kB / 1.25 GB, free: 168.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/1.303, allocations: 175.2 kB / 1.25 GB, free: 168.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001941/1.304, allocations: 101.5 kB / 1.25 GB, free: 168.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.353e-05/1.304, allocations: 40.16 kB / 1.25 GB, free: 168.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001375/1.305, allocations: 1.001 MB / 1.251 GB, free: 168.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.305, allocations: 0 / 1.251 GB, free: 168.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003688/1.309, allocations: 1.138 MB / 1.252 GB, free: 168.4 MB / 0.9981 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002547/1.309, allocations: 148.2 kB / 1.252 GB, free: 168.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00568/1.315, allocations: 4.041 MB / 1.256 GB, free: 168.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-05/1.315, allocations: 2.781 kB / 1.256 GB, free: 168.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001541/1.316, allocations: 1.061 MB / 1.257 GB, free: 168 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004613/1.321, allocations: 414.6 kB / 1.258 GB, free: 168 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01651/1.337, allocations: 9.458 MB / 1.267 GB, free: 164 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004504/1.342, allocations: 2.948 MB / 1.27 GB, free: 163.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009738/1.343, allocations: 137.4 kB / 1.27 GB, free: 163.2 MB / 0.9981 GB Notification: Performance of SimCode: time 9.42e-07/1.343, allocations: 0 / 1.27 GB, free: 163.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.06277/1.406, allocations: 40.72 MB / 1.31 GB, free: 143.9 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches