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.446/1.446, allocations: 251.9 MB / 266.9 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 175.8 kB / 326.5 MB, free: 2.246 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.964/1.964, allocations: 205.4 MB / 0.5775 GB, free: 20.26 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.000905/0.000905, allocations: 87.92 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003452/0.0003452, allocations: 12.41 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2717, allocations: 106.3 MB / 0.9001 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8252/1.097, allocations: 185.5 MB / 1.081 GB, free: 52.56 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002649/1.097, allocations: 97.7 kB / 1.081 GB, free: 52.56 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.1471/1.244, allocations: 64.06 MB / 1.144 GB, free: 34.49 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.875e-06/1.244, allocations: 0 / 1.144 GB, free: 34.49 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001585/1.245, allocations: 35.22 kB / 1.144 GB, free: 34.49 MB / 0.698 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.005483/1.25, allocations: 1.657 MB / 1.146 GB, free: 33.44 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/1.25, allocations: 11.56 kB / 1.146 GB, free: 33.43 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003429/1.254, allocations: 0.4899 MB / 1.146 GB, free: 33.21 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003476/1.257, allocations: 1.149 MB / 1.147 GB, free: 32.73 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/1.257, allocations: 118.7 kB / 1.147 GB, free: 32.73 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008102/1.258, allocations: 143.5 kB / 1.147 GB, free: 32.73 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006756/1.265, allocations: 2.48 MB / 1.15 GB, free: 32.04 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.78e-05/1.265, allocations: 3.875 kB / 1.15 GB, free: 32.04 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005001/1.265, allocations: 66.97 kB / 1.15 GB, free: 32.04 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001179/1.266, allocations: 84.09 kB / 1.15 GB, free: 32.03 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004307/1.27, allocations: 2.043 MB / 1.152 GB, free: 31.7 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0151/1.285, allocations: 10.52 MB / 1.162 GB, free: 24.55 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/1.286, allocations: 0.5732 MB / 1.163 GB, free: 24.41 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001861/1.286, allocations: 89.94 kB / 1.163 GB, free: 24.31 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.006e-05/1.286, allocations: 39.38 kB / 1.163 GB, free: 24.27 MB / 0.698 GB Notification: Performance of pre-optimization done (n=36): time 3.316e-06/1.286, allocations: 0 / 1.163 GB, free: 24.27 MB / 0.698 GB Notification: Performance of matching and sorting (n=52): time 0.017/1.303, allocations: 5.705 MB / 1.168 GB, free: 22.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/1.304, allocations: 88.64 kB / 1.169 GB, free: 22 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001518/1.305, allocations: 0.8077 MB / 1.169 GB, free: 21.74 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001273/1.305, allocations: 39.44 kB / 1.169 GB, free: 21.7 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000491/1.306, allocations: 0.757 MB / 1.17 GB, free: 21.18 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/1.306, allocations: 186.7 kB / 1.17 GB, free: 21.05 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.817e-05/1.306, allocations: 17.44 kB / 1.17 GB, free: 21.05 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001499/1.306, allocations: 392.8 kB / 1.171 GB, free: 20.71 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000945/1.307, allocations: 0.6364 MB / 1.171 GB, free: 20.59 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/1.308, allocations: 1.01 MB / 1.172 GB, free: 19.99 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/1.309, allocations: 0.8124 MB / 1.173 GB, free: 19.85 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.211e-05/1.309, allocations: 3.875 kB / 1.173 GB, free: 19.85 MB / 0.698 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.00705/1.317, allocations: 2.938 MB / 1.176 GB, free: 18.93 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.00107/1.318, allocations: 4.523 MB / 1.18 GB, free: 14.16 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.349e-05/1.318, allocations: 11.5 kB / 1.18 GB, free: 14.16 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006195/1.324, allocations: 1.565 MB / 1.182 GB, free: 13.57 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/1.325, allocations: 229.7 kB / 1.182 GB, free: 13.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007677/1.333, allocations: 7.117 MB / 1.189 GB, free: 9.027 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/1.334, allocations: 162.5 kB / 1.189 GB, free: 8.965 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/1.334, allocations: 45.94 kB / 1.189 GB, free: 8.961 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/1.334, allocations: 10.34 kB / 1.189 GB, free: 8.957 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005576/1.34, allocations: 2.404 MB / 1.192 GB, free: 8.277 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.335e-05/1.34, allocations: 11.62 kB / 1.192 GB, free: 8.277 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004018/1.344, allocations: 1.004 MB / 1.193 GB, free: 7.668 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/1.345, allocations: 254.2 kB / 1.193 GB, free: 7.426 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006293/1.351, allocations: 5.6 MB / 1.198 GB, free: 2.484 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/1.353, allocations: 139.7 kB / 1.199 GB, free: 2.348 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.593e-05/1.353, allocations: 40 kB / 1.199 GB, free: 2.309 MB / 0.698 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 () * Number of clocked 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.001811/1.355, allocations: 0.844 MB / 1.199 GB, free: 1.453 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002233/1.355, allocations: 79.06 kB / 1.199 GB, free: 1.375 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006709/1.362, allocations: 2.465 MB / 1.202 GB, free: 14.88 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/1.362, allocations: 4 kB / 1.202 GB, free: 14.88 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/1.362, allocations: 0 / 1.202 GB, free: 14.88 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/1.362, allocations: 3.984 kB / 1.202 GB, free: 14.87 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01045/1.372, allocations: 4.3 MB / 1.206 GB, free: 10.49 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/1.372, allocations: 8.031 kB / 1.206 GB, free: 10.48 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004093/1.373, allocations: 99.84 kB / 1.206 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005807/1.378, allocations: 1.509 MB / 1.208 GB, free: 8.863 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/1.379, allocations: 15.94 kB / 1.208 GB, free: 8.848 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01221/1.391, allocations: 9.933 MB / 1.217 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/1.391, allocations: 0 / 1.217 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00653/1.397, allocations: 2.529 MB / 1.22 GB, free: 11.76 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008591/1.398, allocations: 288 kB / 1.22 GB, free: 11.46 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/1.398, allocations: 16 kB / 1.22 GB, free: 11.44 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007401/1.399, allocations: 119.8 kB / 1.22 GB, free: 11.32 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002615/1.399, allocations: 59.56 kB / 1.22 GB, free: 11.27 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.722e-05/1.399, allocations: 16 kB / 1.22 GB, free: 11.25 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.00101/1.4, allocations: 0.6317 MB / 1.221 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/1.401, allocations: 4 kB / 1.221 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.002339/1.403, allocations: 0.6094 MB / 1.222 GB, free: 10.01 MB / 0.7292 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 () * Number of clocked 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.0003934/1.403, allocations: 166.6 kB / 1.222 GB, free: 9.848 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.006069/1.409, allocations: 3.082 MB / 1.225 GB, free: 6.715 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 9.088e-06/1.409, allocations: 4.062 kB / 1.225 GB, free: 6.711 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.002299/1.412, allocations: 1.279 MB / 1.226 GB, free: 5.379 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/1.413, allocations: 213.9 kB / 1.226 GB, free: 5.172 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007087/1.42, allocations: 3.54 MB / 1.23 GB, free: 1.574 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001696/1.422, allocations: 1.637 MB / 1.231 GB, free: 15.9 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.001606/1.424, allocations: 490.4 kB / 1.232 GB, free: 15.42 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/1.424, allocations: 59.44 kB / 1.232 GB, free: 15.36 MB / 0.7448 GB Notification: Performance of SimCode: time 1.844e-06/1.424, allocations: 0 / 1.232 GB, free: 15.36 MB / 0.7448 GB Notification: Performance of Templates: time 0.03987/1.464, allocations: 22.27 MB / 1.253 GB, free: 9.23 MB / 0.7605 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