Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.005956/0.005956, allocations: 101.1 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.001266/0.001267, allocations: 193.5 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.347/1.347, allocations: 222.9 MB / 240.5 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.604/2.604, allocations: 437 MB / 0.7106 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 63.89 kB / 0.8692 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7026/0.7041, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads): time 0.04251/0.7467, allocations: 36.93 MB / 1.053 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.02408/0.7708, allocations: 13.77 MB / 1.067 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004497/0.7754, allocations: 99.62 kB / 1.067 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.006129/0.7816, allocations: 2.112 MB / 1.069 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.004315/0.7859, allocations: 1.354 MB / 1.07 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00948/0.7954, allocations: 3.27 MB / 1.073 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.01041/0.8059, allocations: 9.581 MB / 1.083 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01776/0.8236, allocations: 11.19 MB / 1.094 GB, free: 4.176 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004788/0.8285, allocations: 2.282 MB / 1.096 GB, free: 1.887 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005862/0.8344, allocations: 3.288 MB / 1.099 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.002057/0.8365, allocations: 432 kB / 1.1 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003703/0.8402, allocations: 1.26 MB / 1.101 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.003854/0.8441, allocations: 2.284 MB / 1.103 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.005307/0.8494, allocations: 2.338 MB / 1.105 GB, free: 8.27 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.008418/0.8579, allocations: 7.865 MB / 1.113 GB, free: 396 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 9.006e-06/0.8579, allocations: 4 kB / 1.113 GB, free: 392 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.523e-06/0.8579, allocations: 0 / 1.113 GB, free: 392 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0002959/0.8582, allocations: 0 / 1.113 GB, free: 392 kB / 0.8575 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.01202/0.8703, allocations: 4.303 MB / 1.117 GB, free: 12.01 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.8703, allocations: 8.031 kB / 1.117 GB, free: 12 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005877/0.8762, allocations: 1.038 MB / 1.118 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00496/0.8812, allocations: 2.191 MB / 1.12 GB, free: 8.727 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003693/0.8816, allocations: 325 kB / 1.121 GB, free: 8.406 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001705/0.8833, allocations: 428.3 kB / 1.121 GB, free: 7.988 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01796/0.9013, allocations: 7.401 MB / 1.128 GB, free: 360 kB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002307/0.9016, allocations: 15.83 kB / 1.128 GB, free: 344 kB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001639/0.9032, allocations: 188 kB / 1.129 GB, free: 156 kB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004042/0.9036, allocations: 286.9 kB / 1.129 GB, free: 15.87 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01424/0.9179, allocations: 6.026 MB / 1.135 GB, free: 9.836 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04593/0.9639, allocations: 32.71 MB / 1.167 GB, free: 6.273 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004095/0.968, allocations: 2.134 MB / 1.169 GB, free: 4.102 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002127/0.9702, allocations: 1.24 MB / 1.17 GB, free: 2.852 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000265/0.9705, allocations: 114.1 kB / 1.17 GB, free: 2.723 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.719e-05/0.9706, allocations: 47.5 kB / 1.17 GB, free: 2.664 MB / 0.92 GB Notification: Performance of pre-optimization done (n=98): time 4.839e-06/0.9706, allocations: 0 / 1.17 GB, free: 2.664 MB / 0.92 GB Notification: Performance of matching and sorting (n=101): time 0.01125/0.9818, allocations: 5.274 MB / 1.175 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.982, allocations: 145.5 kB / 1.175 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002905/0.9849, allocations: 1.472 MB / 1.177 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0002852/0.9852, allocations: 41.7 kB / 1.177 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001518/0.9867, allocations: 1.867 MB / 1.179 GB, free: 9.746 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006041/0.9873, allocations: 374.9 kB / 1.179 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001026/0.9884, allocations: 459 kB / 1.179 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.9885, allocations: 305.1 kB / 1.18 GB, free: 8.617 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002093/0.9906, allocations: 1.145 MB / 1.181 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002928/0.9936, allocations: 2.215 MB / 1.183 GB, free: 4.723 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005036/0.9986, allocations: 3.434 MB / 1.186 GB, free: 0.8125 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.683e-05/0.9987, allocations: 12 kB / 1.186 GB, free: 0.8008 MB / 0.9356 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006607/1.005, allocations: 3.366 MB / 1.19 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.329e-05/1.005, allocations: 23.98 kB / 1.19 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.784e-05/1.005, allocations: 36 kB / 1.19 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.279e-05/1.006, allocations: 44 kB / 1.19 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002526/1.008, allocations: 0.6361 MB / 1.19 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.091e-05/1.008, allocations: 71.72 kB / 1.19 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002541/1.011, allocations: 326.7 kB / 1.191 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00034/1.011, allocations: 127.9 kB / 1.191 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004563/1.016, allocations: 2.432 MB / 1.193 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002652/1.018, allocations: 2.035 MB / 1.195 GB, free: 7.156 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004459/1.023, allocations: 3.072 MB / 1.198 GB, free: 3.598 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.041e-05/1.023, allocations: 8 kB / 1.198 GB, free: 3.59 MB / 0.9512 GB Notification: Performance of matching and sorting (n=264) (initialization_lambda0): time 0.005694/1.029, allocations: 2.976 MB / 1.201 GB, free: 0.6016 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/1.029, allocations: 20 kB / 1.201 GB, free: 0.582 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.254e-05/1.029, allocations: 36 kB / 1.201 GB, free: 0.5469 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.145e-05/1.029, allocations: 48 kB / 1.201 GB, free: 0.5 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00207/1.031, allocations: 0.5698 MB / 1.202 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.539e-05/1.031, allocations: 71.67 kB / 1.202 GB, free: 15.86 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002338/1.033, allocations: 259 kB / 1.202 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002691/1.034, allocations: 116 kB / 1.202 GB, free: 15.49 MB / 0.9669 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.0007319/1.034, allocations: 339.8 kB / 1.203 GB, free: 15.15 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004987/1.035, allocations: 154.1 kB / 1.203 GB, free: 15 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003739/1.039, allocations: 2.254 MB / 1.205 GB, free: 12.73 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.73e-05/1.039, allocations: 11.94 kB / 1.205 GB, free: 12.72 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/1.039, allocations: 4 kB / 1.205 GB, free: 12.71 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/1.039, allocations: 3.984 kB / 1.205 GB, free: 12.71 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01904/1.058, allocations: 11 MB / 1.216 GB, free: 1.465 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-05/1.058, allocations: 16.06 kB / 1.216 GB, free: 1.449 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001687/1.06, allocations: 387.3 kB / 1.216 GB, free: 1.07 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.865e-05/1.06, allocations: 16 kB / 1.216 GB, free: 1.055 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001633/1.06, allocations: 28 kB / 1.216 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.566e-05/1.06, allocations: 23.92 kB / 1.216 GB, free: 1.004 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-05/1.06, allocations: 15.94 kB / 1.216 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004033/1.064, allocations: 2.767 MB / 1.219 GB, free: 14.06 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/1.065, allocations: 450.9 kB / 1.219 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004754/1.065, allocations: 35.84 kB / 1.219 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/1.067, allocations: 179.7 kB / 1.22 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/1.067, allocations: 96.22 kB / 1.22 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.412e-05/1.067, allocations: 40 kB / 1.22 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001872/1.069, allocations: 1.005 MB / 1.221 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.8e-07/1.069, allocations: 0 / 1.221 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.004724/1.074, allocations: 1.141 MB / 1.222 GB, free: 11.11 MB / 0.9825 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.0003768/1.074, allocations: 149 kB / 1.222 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.006616/1.081, allocations: 4.043 MB / 1.226 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-05/1.081, allocations: 5.5 kB / 1.226 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001585/1.083, allocations: 1.055 MB / 1.227 GB, free: 5.871 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002958/1.086, allocations: 426.2 kB / 1.227 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01604/1.102, allocations: 9.437 MB / 1.236 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004697/1.106, allocations: 2.946 MB / 1.239 GB, free: 8.852 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/1.107, allocations: 135.4 kB / 1.239 GB, free: 8.719 MB / 0.9981 GB Notification: Performance of SimCode: time 1.944e-06/1.107, allocations: 0 / 1.239 GB, free: 8.719 MB / 0.9981 GB Notification: Performance of Templates: time 0.6233/1.731, allocations: 41.14 MB / 1.28 GB, free: 199.8 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches