Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.389/1.389, allocations: 249.5 MB / 257 MB, free: 6.996 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001051/0.001051, allocations: 179.8 kB / 316.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.424/1.424, allocations: 205.3 MB / 0.5671 GB, free: 15.89 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009067/0.0009068, allocations: 97.22 kB / 0.6714 GB, free: 5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.055e-05/2.057e-05, allocations: 7.984 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.234, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7486/0.9827, allocations: 165 MB / 1.046 GB, free: 6.547 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.983, allocations: 91.69 kB / 1.046 GB, free: 6.496 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.4677/1.451, allocations: 198.4 MB / 1.24 GB, free: 8.363 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.512e-06/1.451, allocations: 4 kB / 1.24 GB, free: 8.359 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 0.0003541/1.451, allocations: 132 kB / 1.24 GB, free: 8.23 MB / 0.8542 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.01416/1.465, allocations: 4.454 MB / 1.245 GB, free: 3.707 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/1.465, allocations: 8.031 kB / 1.245 GB, free: 3.699 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007405/1.473, allocations: 1.047 MB / 1.246 GB, free: 2.645 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4793/1.952, allocations: 3.394 MB / 1.249 GB, free: 188.9 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003165/1.952, allocations: 179.5 kB / 1.249 GB, free: 188.9 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002062/1.954, allocations: 331.5 kB / 1.25 GB, free: 188.9 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01322/1.968, allocations: 5.438 MB / 1.255 GB, free: 188.9 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02227/1.99, allocations: 7.677 MB / 1.262 GB, free: 187.6 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002826/1.99, allocations: 31.36 kB / 1.262 GB, free: 187.6 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009022/1.991, allocations: 12.38 kB / 1.262 GB, free: 187.6 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004289/1.992, allocations: 311.8 kB / 1.263 GB, free: 187.6 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04082/2.033, allocations: 38.96 MB / 1.301 GB, free: 162 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003277/2.036, allocations: 3.012 MB / 1.304 GB, free: 161.2 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002398/2.038, allocations: 1.904 MB / 1.306 GB, free: 161.2 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001061/2.038, allocations: 27.5 kB / 1.306 GB, free: 161.2 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/2.038, allocations: 51.34 kB / 1.306 GB, free: 161.2 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=179): time 4.238e-06/2.038, allocations: 1.312 kB / 1.306 GB, free: 161.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=182): time 0.0109/2.049, allocations: 5.787 MB / 1.311 GB, free: 160.3 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/2.049, allocations: 70.91 kB / 1.311 GB, free: 160.3 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001602/2.051, allocations: 1.096 MB / 1.312 GB, free: 160.1 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.0001859/2.051, allocations: 25.7 kB / 1.312 GB, free: 160.1 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.00101/2.052, allocations: 2.25 MB / 1.315 GB, free: 159 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004963/2.053, allocations: 0.6047 MB / 1.315 GB, free: 158.6 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.735e-05/2.053, allocations: 0 / 1.315 GB, free: 158.6 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001106/2.053, allocations: 401.5 kB / 1.316 GB, free: 158.3 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/2.054, allocations: 1.099 MB / 1.317 GB, free: 158.3 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/2.056, allocations: 1.769 MB / 1.318 GB, free: 157.5 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/2.057, allocations: 1.441 MB / 1.32 GB, free: 157.5 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.231e-05/2.057, allocations: 10.61 kB / 1.32 GB, free: 157.5 MB / 0.8542 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.006006/2.063, allocations: 4.213 MB / 1.324 GB, free: 157.2 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/2.063, allocations: 14.31 kB / 1.324 GB, free: 157.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.432e-05/2.063, allocations: 25.06 kB / 1.324 GB, free: 157.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003047/2.066, allocations: 1.442 MB / 1.325 GB, free: 157.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/2.067, allocations: 353.8 kB / 1.326 GB, free: 157.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01637/2.084, allocations: 16.42 MB / 1.342 GB, free: 150.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/2.086, allocations: 70.23 kB / 1.342 GB, free: 150.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001724/2.086, allocations: 95.2 kB / 1.342 GB, free: 150.6 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * 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,30.6%) 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.0003878/2.086, allocations: 164.4 kB / 1.342 GB, free: 150.5 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002825/2.087, allocations: 208.8 kB / 1.342 GB, free: 150.4 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005593/2.092, allocations: 3.848 MB / 1.346 GB, free: 149 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.568e-05/2.092, allocations: 23.59 kB / 1.346 GB, free: 149 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-05/2.092, allocations: 19.19 kB / 1.346 GB, free: 149 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/2.092, allocations: 10.78 kB / 1.346 GB, free: 149 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01243/2.105, allocations: 8.349 MB / 1.354 GB, free: 145.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/2.105, allocations: 3.875 kB / 1.354 GB, free: 145.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007825/2.105, allocations: 183.8 kB / 1.354 GB, free: 145.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002951/2.108, allocations: 1.327 MB / 1.356 GB, free: 145.1 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000125/2.109, allocations: 6.875 kB / 1.356 GB, free: 145.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01504/2.124, allocations: 15.32 MB / 1.371 GB, free: 135.9 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.216e-06/2.124, allocations: 11.38 kB / 1.371 GB, free: 135.9 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005509/2.129, allocations: 4.148 MB / 1.375 GB, free: 134 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001238/2.13, allocations: 0.5145 MB / 1.375 GB, free: 133.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000538/2.131, allocations: 7.484 kB / 1.375 GB, free: 133.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/2.132, allocations: 58 kB / 1.375 GB, free: 133.7 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004246/2.133, allocations: 161.9 kB / 1.375 GB, free: 133.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.717e-05/2.133, allocations: 47.78 kB / 1.376 GB, free: 133.6 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0009473/2.134, allocations: 0.8036 MB / 1.376 GB, free: 133.3 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5.81e-07/2.134, allocations: 0 / 1.376 GB, free: 133.3 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.00336/2.137, allocations: 0.9305 MB / 1.377 GB, free: 133.3 MB / 0.8542 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 () * 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.0002769/2.137, allocations: 121.1 kB / 1.377 GB, free: 133.2 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.005554/2.143, allocations: 3.991 MB / 1.381 GB, free: 131.5 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 8.425e-06/2.143, allocations: 0 / 1.381 GB, free: 131.5 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.003493/2.146, allocations: 2.506 MB / 1.384 GB, free: 130.2 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003425/2.15, allocations: 0.6321 MB / 1.384 GB, free: 130.1 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01433/2.164, allocations: 6.787 MB / 1.391 GB, free: 127.6 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003947/2.168, allocations: 3.663 MB / 1.394 GB, free: 126.3 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.00151/2.17, allocations: 457 kB / 1.395 GB, free: 126.2 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002508/2.17, allocations: 116.5 kB / 1.395 GB, free: 126.2 MB / 0.8542 GB Notification: Performance of SimCode: time 9.12e-07/2.17, allocations: 0 / 1.395 GB, free: 126.2 MB / 0.8542 GB Notification: Performance of Templates: time 0.05754/2.227, allocations: 38.53 MB / 1.433 GB, free: 118.4 MB / 0.8542 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches