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.ACSimpleGrid.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.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.42/1.42, allocations: 249.5 MB / 257 MB, free: 6.84 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.000882/0.0008819, allocations: 172.8 kB / 316.3 MB, free: 3.219 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.504/1.504, allocations: 205.3 MB / 0.5671 GB, free: 15.81 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.0008638/0.0008638, allocations: 87.56 kB / 0.6714 GB, free: 4.938 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.095e-05/2.097e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1744/0.1745, allocations: 106.4 MB / 0.8852 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6342/0.8087, allocations: 185.7 MB / 1.067 GB, free: 2.418 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.809, allocations: 102.3 kB / 1.067 GB, free: 2.359 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1474/0.9564, allocations: 63.45 MB / 1.129 GB, free: 12.38 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.162e-06/0.9564, allocations: 0 / 1.129 GB, free: 12.38 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 9.157e-05/0.9565, allocations: 47.86 kB / 1.129 GB, free: 12.34 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.003342/0.9599, allocations: 1.546 MB / 1.13 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.96, allocations: 11.97 kB / 1.13 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002759/0.9627, allocations: 497.5 kB / 1.131 GB, free: 10.24 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002277/0.965, allocations: 1.153 MB / 1.132 GB, free: 9.043 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.782e-05/0.9651, allocations: 48 kB / 1.132 GB, free: 8.996 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002182/0.9653, allocations: 88 kB / 1.132 GB, free: 8.91 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002948/0.9683, allocations: 1.775 MB / 1.134 GB, free: 7.133 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003449/0.9717, allocations: 2.21 MB / 1.136 GB, free: 4.859 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.306e-05/0.9718, allocations: 11.84 kB / 1.136 GB, free: 4.848 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001482/0.9719, allocations: 3.938 kB / 1.136 GB, free: 4.844 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.824e-05/0.972, allocations: 87.06 kB / 1.136 GB, free: 4.758 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01198/0.984, allocations: 10.12 MB / 1.146 GB, free: 9.77 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008306/0.9849, allocations: 0.5374 MB / 1.146 GB, free: 9.223 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005018/0.9854, allocations: 364.7 kB / 1.147 GB, free: 8.863 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001154/0.9855, allocations: 89.09 kB / 1.147 GB, free: 8.758 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.9856, allocations: 42.5 kB / 1.147 GB, free: 8.707 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=36): time 2.826e-06/0.9856, allocations: 0 / 1.147 GB, free: 8.707 MB / 0.7605 GB Notification: Performance of matching and sorting (n=52): time 0.007939/0.9935, allocations: 3.151 MB / 1.15 GB, free: 5.531 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/0.9936, allocations: 81.55 kB / 1.15 GB, free: 5.434 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001037/0.9947, allocations: 0.7257 MB / 1.151 GB, free: 4.699 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 5.967e-05/0.9947, allocations: 25.7 kB / 1.151 GB, free: 4.668 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005035/0.9953, allocations: 0.7615 MB / 1.151 GB, free: 3.895 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.9954, allocations: 177.4 kB / 1.152 GB, free: 3.719 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.778e-05/0.9955, allocations: 0 / 1.152 GB, free: 3.719 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001795/0.9957, allocations: 390.7 kB / 1.152 GB, free: 3.328 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007427/0.9964, allocations: 0.5726 MB / 1.153 GB, free: 2.758 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/0.9975, allocations: 0.9495 MB / 1.153 GB, free: 1.637 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.9988, allocations: 0.8334 MB / 1.154 GB, free: 0.8008 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.9988, allocations: 0 / 1.154 GB, free: 0.8008 MB / 0.7605 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.00611/1.005, allocations: 2.578 MB / 1.157 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.001996/1.007, allocations: 4.525 MB / 1.161 GB, free: 9.324 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.429e-05/1.007, allocations: 12 kB / 1.161 GB, free: 9.312 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004288/1.011, allocations: 1.088 MB / 1.162 GB, free: 8.211 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009364/1.012, allocations: 223.6 kB / 1.162 GB, free: 7.992 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007977/1.02, allocations: 6.537 MB / 1.169 GB, free: 1.16 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/1.022, allocations: 155.6 kB / 1.169 GB, free: 1.008 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002149/1.022, allocations: 44.22 kB / 1.169 GB, free: 0.9648 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/1.022, allocations: 5.875 kB / 1.169 GB, free: 0.9609 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002339/1.024, allocations: 1.27 MB / 1.17 GB, free: 15.69 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.122e-05/1.024, allocations: 12.94 kB / 1.17 GB, free: 15.68 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/1.024, allocations: 16 kB / 1.17 GB, free: 15.66 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/1.025, allocations: 279.6 kB / 1.171 GB, free: 15.39 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.665e-05/1.026, allocations: 35.81 kB / 1.171 GB, free: 15.35 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008453/1.026, allocations: 99.84 kB / 1.171 GB, free: 15.25 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.755e-05/1.026, allocations: 43.98 kB / 1.171 GB, free: 15.21 MB / 0.7917 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 95 * 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: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002797/1.027, allocations: 132.7 kB / 1.171 GB, free: 15.07 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002048/1.027, allocations: 79.06 kB / 1.171 GB, free: 15 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006003/1.033, allocations: 2.27 MB / 1.173 GB, free: 12.7 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/1.033, allocations: 4 kB / 1.173 GB, free: 12.7 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/1.033, allocations: 7.891 kB / 1.173 GB, free: 12.69 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/1.033, allocations: 0 / 1.173 GB, free: 12.69 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008633/1.042, allocations: 3.888 MB / 1.177 GB, free: 8.699 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-06/1.042, allocations: 7.984 kB / 1.177 GB, free: 8.691 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004206/1.042, allocations: 99.86 kB / 1.177 GB, free: 8.594 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004872/1.047, allocations: 1.349 MB / 1.178 GB, free: 7.23 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.36e-05/1.047, allocations: 0 / 1.178 GB, free: 7.23 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0112/1.058, allocations: 9.12 MB / 1.187 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/1.058, allocations: 8.094 kB / 1.187 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005775/1.064, allocations: 2.322 MB / 1.19 GB, free: 11.21 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006092/1.065, allocations: 276.1 kB / 1.19 GB, free: 10.92 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000235/1.065, allocations: 11.94 kB / 1.19 GB, free: 10.91 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/1.066, allocations: 155.7 kB / 1.19 GB, free: 10.76 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000213/1.066, allocations: 47.88 kB / 1.19 GB, free: 10.71 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.317e-05/1.066, allocations: 16 kB / 1.19 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.000916/1.067, allocations: 0.5576 MB / 1.191 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7.91e-07/1.067, allocations: 0 / 1.191 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.002348/1.07, allocations: 0.5468 MB / 1.191 GB, free: 9.594 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * 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: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003304/1.07, allocations: 159.3 kB / 1.191 GB, free: 9.43 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.003811/1.074, allocations: 2.348 MB / 1.194 GB, free: 7.062 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/1.074, allocations: 0 / 1.194 GB, free: 7.062 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.00191/1.076, allocations: 1.183 MB / 1.195 GB, free: 5.84 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/1.077, allocations: 194.6 kB / 1.195 GB, free: 5.656 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005037/1.082, allocations: 2.369 MB / 1.197 GB, free: 3.23 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001696/1.084, allocations: 1.646 MB / 1.199 GB, free: 1.551 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.00158/1.085, allocations: 0.5836 MB / 1.199 GB, free: 0.9609 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000146/1.085, allocations: 47.44 kB / 1.199 GB, free: 0.9141 MB / 0.8073 GB Notification: Performance of SimCode: time 6.51e-07/1.085, allocations: 0 / 1.199 GB, free: 0.9141 MB / 0.8073 GB Notification: Performance of Templates: time 0.03013/1.116, allocations: 19.07 MB / 1.218 GB, free: 13.94 MB / 0.8386 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches