Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.455/1.455, allocations: 249.5 MB / 257 MB, free: 6.969 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.0009607/0.0009607, allocations: 187.9 kB / 316.3 MB, free: 3.223 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.414/1.414, allocations: 205.3 MB / 0.5672 GB, free: 15.85 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.0008439/0.0008442, allocations: 82.5 kB / 0.6714 GB, free: 4.98 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.178e-05/2.18e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.218, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8473/1.065, allocations: 152.8 MB / 1.034 GB, free: 2.594 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/1.066, allocations: 84.58 kB / 1.034 GB, free: 2.551 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.04037/1.106, allocations: 16.16 MB / 1.05 GB, free: 5.133 MB / 0.6667 GB Notification: Performance of FrontEnd: time 3.466e-06/1.106, allocations: 0 / 1.05 GB, free: 5.133 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 3.213e-05/1.106, allocations: 4 kB / 1.05 GB, free: 5.129 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.00117/1.107, allocations: 0.5218 MB / 1.051 GB, free: 4.574 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 6.712e-05/1.107, allocations: 11.97 kB / 1.051 GB, free: 4.562 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009225/1.108, allocations: 95.61 kB / 1.051 GB, free: 4.469 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004735/1.109, allocations: 259 kB / 1.051 GB, free: 4.199 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/1.109, allocations: 8 kB / 1.051 GB, free: 4.191 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.421e-05/1.109, allocations: 8 kB / 1.051 GB, free: 4.184 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004979/1.109, allocations: 220.2 kB / 1.051 GB, free: 4.043 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005654/1.11, allocations: 330.1 kB / 1.052 GB, free: 3.766 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/1.11, allocations: 0 / 1.052 GB, free: 3.766 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.168e-05/1.11, allocations: 4 kB / 1.052 GB, free: 3.762 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.772e-05/1.11, allocations: 24.25 kB / 1.052 GB, free: 3.738 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/1.112, allocations: 1.672 MB / 1.053 GB, free: 2.117 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007095/1.113, allocations: 310 kB / 1.054 GB, free: 1.879 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002945/1.114, allocations: 140 kB / 1.054 GB, free: 1.777 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002282/1.114, allocations: 93.02 kB / 1.054 GB, free: 1.668 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/1.114, allocations: 38.56 kB / 1.054 GB, free: 1.621 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=20): time 1.964e-06/1.114, allocations: 0 / 1.054 GB, free: 1.621 MB / 0.6667 GB Notification: Performance of matching and sorting (n=21): time 0.001057/1.115, allocations: 362 kB / 1.054 GB, free: 1.324 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.738e-05/1.115, allocations: 77.11 kB / 1.054 GB, free: 1.23 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001954/1.115, allocations: 175 kB / 1.054 GB, free: 1.078 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.372e-05/1.115, allocations: 25.7 kB / 1.054 GB, free: 1.047 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.000106/1.115, allocations: 166.3 kB / 1.055 GB, free: 0.8984 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 5.908e-05/1.115, allocations: 71.61 kB / 1.055 GB, free: 0.8359 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.585e-05/1.115, allocations: 0 / 1.055 GB, free: 0.8359 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001387/1.116, allocations: 328.8 kB / 1.055 GB, free: 0.5117 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/1.116, allocations: 110.7 kB / 1.055 GB, free: 456 kB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/1.116, allocations: 189.3 kB / 1.055 GB, free: 268 kB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002506/1.116, allocations: 145.3 kB / 1.055 GB, free: 172 kB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/1.116, allocations: 0 / 1.055 GB, free: 172 kB / 0.6667 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006585/1.117, allocations: 384.1 kB / 1.056 GB, free: 15.87 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005058/1.117, allocations: 1.048 MB / 1.057 GB, free: 14.76 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/1.117, allocations: 4 kB / 1.057 GB, free: 14.76 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002373/1.118, allocations: 36.52 kB / 1.057 GB, free: 14.72 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003111/1.118, allocations: 75.25 kB / 1.057 GB, free: 14.65 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001298/1.119, allocations: 1.432 MB / 1.058 GB, free: 13.19 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/1.12, allocations: 23.97 kB / 1.058 GB, free: 13.17 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/1.12, allocations: 27.55 kB / 1.058 GB, free: 13.14 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.033e-06/1.12, allocations: 4 kB / 1.058 GB, free: 13.14 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005287/1.12, allocations: 297.7 kB / 1.059 GB, free: 12.92 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/1.12, allocations: 7.984 kB / 1.059 GB, free: 12.91 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001193/1.12, allocations: 44.97 kB / 1.059 GB, free: 12.87 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002647/1.121, allocations: 71.27 kB / 1.059 GB, free: 12.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001027/1.122, allocations: 1.433 MB / 1.06 GB, free: 11.35 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/1.122, allocations: 19.89 kB / 1.06 GB, free: 11.33 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/1.122, allocations: 15.67 kB / 1.06 GB, free: 11.32 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001149/1.122, allocations: 120.8 kB / 1.06 GB, free: 11.19 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.463e-05/1.122, allocations: 15.94 kB / 1.06 GB, free: 11.18 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005703/1.123, allocations: 327.3 kB / 1.061 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/1.123, allocations: 4 kB / 1.061 GB, free: 10.92 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/1.123, allocations: 0 / 1.061 GB, free: 10.92 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/1.123, allocations: 3.984 kB / 1.061 GB, free: 10.92 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/1.124, allocations: 0.8824 MB / 1.062 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/1.124, allocations: 0 / 1.062 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002278/1.124, allocations: 59.77 kB / 1.062 GB, free: 10.06 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000111/1.124, allocations: 36.86 kB / 1.062 GB, free: 10.02 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/1.124, allocations: 4 kB / 1.062 GB, free: 10.02 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/1.125, allocations: 1.356 MB / 1.063 GB, free: 8.625 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.125, allocations: 0 / 1.063 GB, free: 8.625 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006666/1.126, allocations: 0.5781 MB / 1.064 GB, free: 8.043 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/1.126, allocations: 131.1 kB / 1.064 GB, free: 7.906 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.138e-05/1.126, allocations: 4 kB / 1.064 GB, free: 7.902 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/1.126, allocations: 19.97 kB / 1.064 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.323e-05/1.126, allocations: 19.73 kB / 1.064 GB, free: 7.867 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/1.126, allocations: 15.94 kB / 1.064 GB, free: 7.852 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001045/1.127, allocations: 137.1 kB / 1.064 GB, free: 7.738 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.21e-07/1.127, allocations: 0 / 1.064 GB, free: 7.738 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0006137/1.127, allocations: 118.9 kB / 1.064 GB, free: 7.625 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000201/1.127, allocations: 111.1 kB / 1.064 GB, free: 7.508 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0009474/1.128, allocations: 0.6357 MB / 1.065 GB, free: 6.988 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/1.128, allocations: 448 / 1.065 GB, free: 6.988 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002996/1.129, allocations: 251 kB / 1.065 GB, free: 6.773 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/1.129, allocations: 19.3 kB / 1.065 GB, free: 6.758 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007477/1.13, allocations: 413.8 kB / 1.065 GB, free: 6.371 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/1.13, allocations: 0.7743 MB / 1.066 GB, free: 5.578 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0002698/1.13, allocations: 97.98 kB / 1.066 GB, free: 5.48 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.845e-05/1.13, allocations: 19.42 kB / 1.066 GB, free: 5.461 MB / 0.6823 GB Notification: Performance of SimCode: time 2.6e-07/1.13, allocations: 4 kB / 1.066 GB, free: 5.457 MB / 0.6823 GB Notification: Performance of Templates: time 0.006167/1.137, allocations: 3.008 MB / 1.069 GB, free: 2.469 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches