Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.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_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 99.86 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.002112/0.002112, allocations: 177.3 kB / 15.94 MB, free: 228 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.443/1.443, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.705/2.705, allocations: 436.5 MB / 0.7104 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.0003509, allocations: 8 kB / 0.8708 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8171/0.8174, allocations: 153.7 MB / 1.021 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.03162/0.8491, allocations: 30.67 MB / 1.051 GB, free: 2.375 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0186/0.8678, allocations: 10.99 MB / 1.062 GB, free: 7.359 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003736/0.8716, allocations: 131.2 kB / 1.062 GB, free: 7.23 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002495/0.8741, allocations: 0.6949 MB / 1.062 GB, free: 6.531 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.007751/0.8818, allocations: 1.324 MB / 1.064 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.005977/0.8878, allocations: 1.463 MB / 1.065 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.008827/0.8967, allocations: 3.881 MB / 1.069 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02064/0.9174, allocations: 12.56 MB / 1.081 GB, free: 3.219 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005525/0.9229, allocations: 2.293 MB / 1.083 GB, free: 0.918 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005112/0.9281, allocations: 2.363 MB / 1.086 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.001345/0.9295, allocations: 335.9 kB / 1.086 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003174/0.9327, allocations: 0.8232 MB / 1.087 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.002826/0.9355, allocations: 2.249 MB / 1.089 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.002073/0.9376, allocations: 1.104 MB / 1.09 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.9492, allocations: 9.777 MB / 1.1 GB, free: 232 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.9493, allocations: 0 / 1.1 GB, free: 232 kB / 0.8419 GB Notification: Performance of FrontEnd: time 4.93e-06/0.9493, allocations: 0 / 1.1 GB, free: 232 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0004026/0.9497, allocations: 3.938 kB / 1.1 GB, free: 228 kB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01291/0.9626, allocations: 4.671 MB / 1.104 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.9627, allocations: 8.031 kB / 1.104 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006537/0.9692, allocations: 1.035 MB / 1.105 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008243/0.9775, allocations: 3.196 MB / 1.108 GB, free: 7.176 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003839/0.9779, allocations: 407.1 kB / 1.109 GB, free: 6.777 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00216/0.9801, allocations: 0.5466 MB / 1.109 GB, free: 6.23 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02261/1.003, allocations: 8.985 MB / 1.118 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002336/1.003, allocations: 27.78 kB / 1.118 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001132/1.004, allocations: 232 kB / 1.118 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003875/1.005, allocations: 350.8 kB / 1.119 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01744/1.022, allocations: 6.783 MB / 1.125 GB, free: 5.535 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0538/1.076, allocations: 40.18 MB / 1.164 GB, free: 9.641 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004387/1.08, allocations: 3.102 MB / 1.167 GB, free: 6.402 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001916/1.081, allocations: 18 kB / 1.167 GB, free: 6.387 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.068e-05/1.081, allocations: 52.56 kB / 1.168 GB, free: 6.328 MB / 0.92 GB Notification: Performance of pre-optimization done (n=179): time 3.406e-06/1.081, allocations: 0 / 1.168 GB, free: 6.328 MB / 0.92 GB Notification: Performance of matching and sorting (n=182): time 0.02613/1.107, allocations: 9.869 MB / 1.177 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.416e-05/1.107, allocations: 73.39 kB / 1.177 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002627/1.109, allocations: 1.507 MB / 1.179 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0002475/1.11, allocations: 53.7 kB / 1.179 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001777/1.112, allocations: 2.257 MB / 1.181 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007743/1.112, allocations: 0.6238 MB / 1.182 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001564/1.112, allocations: 51.94 kB / 1.182 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0002015/1.113, allocations: 394.4 kB / 1.182 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001801/1.115, allocations: 1.179 MB / 1.183 GB, free: 6.121 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002204/1.117, allocations: 1.858 MB / 1.185 GB, free: 3.945 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0021/1.119, allocations: 1.513 MB / 1.186 GB, free: 2.43 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.434e-05/1.119, allocations: 8 kB / 1.186 GB, free: 2.422 MB / 0.9356 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.007292/1.126, allocations: 4.555 MB / 1.191 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.502e-05/1.126, allocations: 18.19 kB / 1.191 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.09e-05/1.126, allocations: 20 kB / 1.191 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00355/1.13, allocations: 1.581 MB / 1.192 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/1.131, allocations: 351.4 kB / 1.193 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02154/1.153, allocations: 17.69 MB / 1.21 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001858/1.154, allocations: 119.9 kB / 1.21 GB, free: 9.531 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001616/1.155, allocations: 100.1 kB / 1.21 GB, free: 9.434 MB / 0.9669 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 (177): * Single equations (assignments): 173 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(12,31.2%) 26,(6,66.7%) 24,(6,66.7%) 16,(6,66.7%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003089/1.158, allocations: 1.894 MB / 1.212 GB, free: 7.527 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003963/1.158, allocations: 225.3 kB / 1.212 GB, free: 7.305 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006551/1.165, allocations: 4.075 MB / 1.216 GB, free: 3.203 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.599e-05/1.165, allocations: 16 kB / 1.216 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.981e-05/1.165, allocations: 19.98 kB / 1.216 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.981e-05/1.165, allocations: 7.969 kB / 1.216 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0161/1.181, allocations: 9.455 MB / 1.226 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/1.181, allocations: 4 kB / 1.226 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007784/1.182, allocations: 175.7 kB / 1.226 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003242/1.185, allocations: 1.362 MB / 1.227 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001215/1.185, allocations: 36 kB / 1.227 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01911/1.204, allocations: 16.52 MB / 1.243 GB, free: 6.82 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/1.204, allocations: 11.98 kB / 1.243 GB, free: 6.809 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006394/1.211, allocations: 4.362 MB / 1.248 GB, free: 2.199 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/1.212, allocations: 0.5333 MB / 1.248 GB, free: 1.645 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002428/1.212, allocations: 36 kB / 1.248 GB, free: 1.609 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008363/1.213, allocations: 87.89 kB / 1.248 GB, free: 1.523 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003948/1.213, allocations: 157.7 kB / 1.248 GB, free: 1.367 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.772e-05/1.213, allocations: 52.5 kB / 1.248 GB, free: 1.316 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001226/1.215, allocations: 0.989 MB / 1.249 GB, free: 312 kB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/1.215, allocations: 0 / 1.249 GB, free: 312 kB / 0.9981 GB Notification: Performance of remove unused functions: time 0.8331/2.048, allocations: 0.98 MB / 1.25 GB, free: 206.6 MB / 0.9981 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 (85): * Single equations (assignments): 81 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,66.7%) 16,(6,66.7%) 16,(6,66.7%) 24,(6,66.7%) 24} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007218/2.049, allocations: 140.6 kB / 1.25 GB, free: 206.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.009581/2.058, allocations: 4.293 MB / 1.255 GB, free: 205.9 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/2.058, allocations: 1.844 kB / 1.255 GB, free: 205.9 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.005502/2.064, allocations: 2.672 MB / 1.257 GB, free: 205.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004062/2.068, allocations: 0.6772 MB / 1.258 GB, free: 205.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0217/2.09, allocations: 10.53 MB / 1.268 GB, free: 199.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006937/2.097, allocations: 3.666 MB / 1.272 GB, free: 198.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002761/2.099, allocations: 461.9 kB / 1.272 GB, free: 198.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004322/2.1, allocations: 115.3 kB / 1.272 GB, free: 198.2 MB / 0.9981 GB Notification: Performance of SimCode: time 1.593e-06/2.1, allocations: 0 / 1.272 GB, free: 198.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.07255/2.172, allocations: 40.8 MB / 1.312 GB, free: 173.2 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches