Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.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_9_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_9_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.001211/0.001211, allocations: 99.62 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.001504/0.001505, 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.394/1.394, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.456/2.456, allocations: 390.3 MB / 0.6653 GB, free: 3 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005065/0.0005066, allocations: 12 kB / 0.8145 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7945/0.795, allocations: 142.3 MB / 0.9535 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.03361/0.8287, allocations: 30.66 MB / 0.9835 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0176/0.8463, allocations: 11 MB / 0.9942 GB, free: 6.41 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003484/0.8499, allocations: 131.2 kB / 0.9943 GB, free: 6.281 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002689/0.8526, allocations: 0.6949 MB / 0.995 GB, free: 5.582 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.005778/0.8584, allocations: 1.328 MB / 0.9963 GB, free: 4.25 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.005669/0.8641, allocations: 1.454 MB / 0.9977 GB, free: 2.797 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.008578/0.8727, allocations: 3.878 MB / 1.002 GB, free: 14.91 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02206/0.8947, allocations: 12.56 MB / 1.014 GB, free: 2.277 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004838/0.8996, allocations: 2.293 MB / 1.016 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004532/0.9042, allocations: 2.371 MB / 1.018 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.001576/0.9058, allocations: 331.9 kB / 1.019 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002883/0.9087, allocations: 0.8232 MB / 1.019 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.002566/0.9112, allocations: 2.241 MB / 1.022 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.001691/0.913, allocations: 1.108 MB / 1.023 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.009695/0.9227, allocations: 9.773 MB / 1.032 GB, free: 15.29 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.9227, allocations: 0 / 1.032 GB, free: 15.29 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.254e-06/0.9227, allocations: 0 / 1.032 GB, free: 15.29 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0003217/0.923, allocations: 0 / 1.032 GB, free: 15.29 MB / 0.795 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.009725/0.9328, allocations: 4.675 MB / 1.037 GB, free: 10.54 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.9328, allocations: 12.03 kB / 1.037 GB, free: 10.53 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005579/0.9384, allocations: 1.032 MB / 1.038 GB, free: 9.492 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007146/0.9456, allocations: 3.192 MB / 1.041 GB, free: 6.242 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003149/0.9459, allocations: 423 kB / 1.041 GB, free: 5.828 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001504/0.9474, allocations: 0.5349 MB / 1.042 GB, free: 5.293 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01844/0.9659, allocations: 8.993 MB / 1.051 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001614/0.9661, allocations: 27.77 kB / 1.051 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006082/0.9667, allocations: 239.9 kB / 1.051 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003645/0.9671, allocations: 350.8 kB / 1.051 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01362/0.9807, allocations: 6.783 MB / 1.058 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05403/1.035, allocations: 40.17 MB / 1.097 GB, free: 8.699 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004164/1.039, allocations: 3.11 MB / 1.1 GB, free: 5.445 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000162/1.039, allocations: 18 kB / 1.1 GB, free: 5.43 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/1.039, allocations: 52.56 kB / 1.1 GB, free: 5.371 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=179): time 3.937e-06/1.039, allocations: 0 / 1.1 GB, free: 5.371 MB / 0.8575 GB Notification: Performance of matching and sorting (n=182): time 0.02524/1.064, allocations: 9.865 MB / 1.11 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/1.065, allocations: 73.41 kB / 1.11 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002155/1.067, allocations: 1.511 MB / 1.111 GB, free: 9.77 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0002022/1.067, allocations: 57.7 kB / 1.111 GB, free: 9.707 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.002289/1.069, allocations: 2.249 MB / 1.114 GB, free: 7.426 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.001088/1.07, allocations: 0.6355 MB / 1.114 GB, free: 6.781 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/1.071, allocations: 47.94 kB / 1.114 GB, free: 6.734 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002596/1.071, allocations: 394.4 kB / 1.115 GB, free: 6.344 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002093/1.073, allocations: 1.175 MB / 1.116 GB, free: 5.164 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002375/1.075, allocations: 1.862 MB / 1.118 GB, free: 2.988 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002089/1.077, allocations: 1.509 MB / 1.119 GB, free: 1.477 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.345e-05/1.077, allocations: 7.953 kB / 1.119 GB, free: 1.469 MB / 0.8731 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.00817/1.086, allocations: 4.548 MB / 1.124 GB, free: 12.89 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 4.36e-05/1.086, allocations: 24.05 kB / 1.124 GB, free: 12.87 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.049e-05/1.086, allocations: 20 kB / 1.124 GB, free: 12.85 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003787/1.09, allocations: 1.585 MB / 1.125 GB, free: 11.26 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/1.091, allocations: 351.4 kB / 1.126 GB, free: 10.91 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02416/1.115, allocations: 17.7 MB / 1.143 GB, free: 8.688 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002004/1.117, allocations: 115.9 kB / 1.143 GB, free: 8.574 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002712/1.117, allocations: 95.98 kB / 1.143 GB, free: 8.48 MB / 0.9044 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.003684/1.121, allocations: 1.894 MB / 1.145 GB, free: 6.574 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005576/1.122, allocations: 229.2 kB / 1.145 GB, free: 6.348 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007264/1.129, allocations: 4.067 MB / 1.149 GB, free: 2.254 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.938e-05/1.129, allocations: 16 kB / 1.149 GB, free: 2.238 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.275e-05/1.129, allocations: 20 kB / 1.149 GB, free: 2.219 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.879e-05/1.129, allocations: 15.95 kB / 1.149 GB, free: 2.203 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01792/1.147, allocations: 9.439 MB / 1.158 GB, free: 8.512 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/1.147, allocations: 7.938 kB / 1.158 GB, free: 8.504 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008238/1.148, allocations: 180.3 kB / 1.158 GB, free: 8.328 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003426/1.151, allocations: 1.356 MB / 1.16 GB, free: 6.961 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001569/1.152, allocations: 36 kB / 1.16 GB, free: 6.926 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02205/1.174, allocations: 16.56 MB / 1.176 GB, free: 5.836 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.174, allocations: 4 kB / 1.176 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007214/1.181, allocations: 4.358 MB / 1.18 GB, free: 1.227 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001399/1.182, allocations: 0.5372 MB / 1.181 GB, free: 0.668 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000294/1.183, allocations: 32 kB / 1.181 GB, free: 0.6367 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009209/1.184, allocations: 91.89 kB / 1.181 GB, free: 0.5469 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004331/1.184, allocations: 161.7 kB / 1.181 GB, free: 396 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/1.184, allocations: 48 kB / 1.181 GB, free: 348 kB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001396/1.185, allocations: 0.9812 MB / 1.182 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/1.185, allocations: 4 kB / 1.182 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.003151/1.189, allocations: 0.9883 MB / 1.183 GB, free: 14.34 MB / 0.9512 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.0002892/1.189, allocations: 147 kB / 1.183 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.006992/1.196, allocations: 4.285 MB / 1.187 GB, free: 9.855 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/1.196, allocations: 0 / 1.187 GB, free: 9.855 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.004974/1.201, allocations: 2.666 MB / 1.19 GB, free: 7.137 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003802/1.205, allocations: 0.674 MB / 1.191 GB, free: 6.469 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01816/1.223, allocations: 10.54 MB / 1.201 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005203/1.228, allocations: 3.668 MB / 1.205 GB, free: 8.156 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001772/1.23, allocations: 459.9 kB / 1.205 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003024/1.23, allocations: 111.4 kB / 1.205 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of SimCode: time 1.443e-06/1.23, allocations: 4 kB / 1.205 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of Templates: time 0.07886/1.309, allocations: 40.8 MB / 1.245 GB, free: 15.21 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches