Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.36/2.36, allocations: 387.4 MB / 394.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 172.9 kB / 487.4 MB, free: 5.023 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.521/1.521, allocations: 221.5 MB / 0.7824 GB, free: 0.8906 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009168/0.0009167, allocations: 110.6 kB / 0.9219 GB, free: 2.125 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.984e-05/1.997e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.237, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8549/1.092, allocations: 202.8 MB / 1.404 GB, free: 5.363 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/1.092, allocations: 95.91 kB / 1.404 GB, free: 5.312 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.2406/1.333, allocations: 73.31 MB / 1.476 GB, free: 7.555 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.923e-06/1.333, allocations: 8 kB / 1.476 GB, free: 7.547 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001242/1.333, allocations: 32 kB / 1.476 GB, free: 7.516 MB / 0.8855 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.005247/1.338, allocations: 1.568 MB / 1.477 GB, free: 5.992 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/1.338, allocations: 8.031 kB / 1.477 GB, free: 5.984 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005203/1.344, allocations: 495.8 kB / 1.478 GB, free: 5.504 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004001/1.348, allocations: 1.162 MB / 1.479 GB, free: 4.562 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.582e-05/1.348, allocations: 48 kB / 1.479 GB, free: 4.516 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000523/1.348, allocations: 88 kB / 1.479 GB, free: 4.43 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005248/1.354, allocations: 1.768 MB / 1.481 GB, free: 3.312 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005357/1.359, allocations: 2.214 MB / 1.483 GB, free: 1.691 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.466e-05/1.359, allocations: 0 / 1.483 GB, free: 1.691 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002402/1.359, allocations: 4 kB / 1.483 GB, free: 1.688 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001505/1.359, allocations: 82.31 kB / 1.483 GB, free: 1.609 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01817/1.378, allocations: 10.13 MB / 1.493 GB, free: 8.25 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001331/1.379, allocations: 0.5465 MB / 1.493 GB, free: 7.695 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008153/1.38, allocations: 369 kB / 1.494 GB, free: 7.332 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001685/1.38, allocations: 89.09 kB / 1.494 GB, free: 7.227 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.338e-05/1.38, allocations: 46.42 kB / 1.494 GB, free: 7.172 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=36): time 4.679e-06/1.38, allocations: 0 / 1.494 GB, free: 7.172 MB / 0.9011 GB Notification: Performance of matching and sorting (n=52): time 0.01263/1.393, allocations: 3.152 MB / 1.497 GB, free: 4 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.406e-05/1.393, allocations: 93.53 kB / 1.497 GB, free: 3.891 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001601/1.395, allocations: 0.7218 MB / 1.498 GB, free: 3.16 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0001389/1.395, allocations: 25.7 kB / 1.498 GB, free: 3.129 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.000751/1.395, allocations: 0.7577 MB / 1.498 GB, free: 2.359 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002659/1.396, allocations: 177.4 kB / 1.499 GB, free: 2.184 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.253e-05/1.396, allocations: 0 / 1.499 GB, free: 2.184 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0002659/1.396, allocations: 394.7 kB / 1.499 GB, free: 1.789 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/1.397, allocations: 0.5726 MB / 1.5 GB, free: 1.215 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001608/1.399, allocations: 0.9415 MB / 1.501 GB, free: 104 kB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002202/1.401, allocations: 0.8255 MB / 1.501 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-05/1.401, allocations: 4 kB / 1.501 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.01001/1.411, allocations: 2.578 MB / 1.504 GB, free: 12.67 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.00268/1.414, allocations: 4.529 MB / 1.508 GB, free: 7.789 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.392e-05/1.414, allocations: 12 kB / 1.508 GB, free: 7.777 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006838/1.421, allocations: 1.092 MB / 1.509 GB, free: 6.672 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/1.423, allocations: 219.7 kB / 1.51 GB, free: 6.457 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0108/1.433, allocations: 6.549 MB / 1.516 GB, free: 15.62 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/1.435, allocations: 147.6 kB / 1.516 GB, free: 15.48 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/1.435, allocations: 52.05 kB / 1.516 GB, free: 15.43 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/1.435, allocations: 4 kB / 1.516 GB, free: 15.42 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002466/1.438, allocations: 1.263 MB / 1.517 GB, free: 14.16 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/1.438, allocations: 12 kB / 1.517 GB, free: 14.15 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.301e-05/1.438, allocations: 20 kB / 1.517 GB, free: 14.13 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/1.439, allocations: 279.5 kB / 1.518 GB, free: 13.86 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.754e-05/1.439, allocations: 28.16 kB / 1.518 GB, free: 13.83 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/1.44, allocations: 104.1 kB / 1.518 GB, free: 13.73 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.333e-05/1.44, allocations: 40 kB / 1.518 GB, free: 13.69 MB / 0.9323 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.0003373/1.44, allocations: 140.6 kB / 1.518 GB, free: 13.54 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001878/1.441, allocations: 87.03 kB / 1.518 GB, free: 13.46 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006427/1.447, allocations: 2.262 MB / 1.52 GB, free: 11.17 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/1.447, allocations: 11.95 kB / 1.52 GB, free: 11.16 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/1.447, allocations: 0 / 1.52 GB, free: 11.16 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/1.447, allocations: 3.984 kB / 1.52 GB, free: 11.16 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008431/1.456, allocations: 3.873 MB / 1.524 GB, free: 7.172 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/1.456, allocations: 4.031 kB / 1.524 GB, free: 7.168 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004322/1.456, allocations: 103.8 kB / 1.524 GB, free: 7.066 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004691/1.461, allocations: 1.345 MB / 1.525 GB, free: 5.707 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.587e-05/1.461, allocations: 8.047 kB / 1.525 GB, free: 5.699 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01081/1.472, allocations: 9.104 MB / 1.534 GB, free: 12.13 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/1.472, allocations: 4 kB / 1.534 GB, free: 12.12 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005624/1.477, allocations: 2.338 MB / 1.537 GB, free: 9.688 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005859/1.478, allocations: 268.1 kB / 1.537 GB, free: 9.406 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001202/1.478, allocations: 11.94 kB / 1.537 GB, free: 9.395 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009509/1.479, allocations: 159.7 kB / 1.537 GB, free: 9.238 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001981/1.479, allocations: 43.94 kB / 1.537 GB, free: 9.195 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.546e-05/1.479, allocations: 16 kB / 1.537 GB, free: 9.18 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0007785/1.48, allocations: 0.5537 MB / 1.538 GB, free: 8.629 MB / 0.948 GB Notification: Performance of sort global known variables: time 3.61e-07/1.48, allocations: 0 / 1.538 GB, free: 8.629 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.00212/1.482, allocations: 0.5585 MB / 1.538 GB, free: 8.07 MB / 0.948 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.0003784/1.483, allocations: 181 kB / 1.538 GB, free: 7.887 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003983/1.487, allocations: 2.349 MB / 1.541 GB, free: 5.523 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/1.487, allocations: 0 / 1.541 GB, free: 5.523 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001884/1.489, allocations: 1.186 MB / 1.542 GB, free: 4.297 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001139/1.49, allocations: 196.5 kB / 1.542 GB, free: 4.105 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004984/1.495, allocations: 2.367 MB / 1.544 GB, free: 1.68 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001505/1.496, allocations: 1.638 MB / 1.546 GB, free: 12 kB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.001777/1.498, allocations: 0.5878 MB / 1.547 GB, free: 15.41 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/1.498, allocations: 55.38 kB / 1.547 GB, free: 15.36 MB / 0.9636 GB Notification: Performance of SimCode: time 9.32e-07/1.498, allocations: 0 / 1.547 GB, free: 15.36 MB / 0.9636 GB Notification: Performance of Templates: time 0.03068/1.529, allocations: 19.17 MB / 1.565 GB, free: 12.3 MB / 0.9792 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches