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.414/1.414, allocations: 249.3 MB / 261.8 MB, free: 5.93 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.0009303/0.0009304, allocations: 180.9 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.301/1.301, allocations: 205.1 MB / 0.572 GB, free: 10.71 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.0008136/0.0008137, allocations: 94.52 kB / 0.6764 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.101e-05/4.117e-05, allocations: 4 kB / 0.7879 GB, free: 97.13 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2442, allocations: 106.3 MB / 0.8918 GB, free: 6.695 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7958/1.04, allocations: 152.5 MB / 1.041 GB, free: 15.78 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/1.04, allocations: 82.77 kB / 1.041 GB, free: 15.73 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.03908/1.08, allocations: 16.22 MB / 1.057 GB, free: 2.148 MB / 0.6667 GB Notification: Performance of FrontEnd: time 3.376e-06/1.08, allocations: 4 kB / 1.057 GB, free: 2.145 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.869e-05/1.08, allocations: 7.938 kB / 1.057 GB, free: 2.137 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.0008706/1.08, allocations: 0.5135 MB / 1.057 GB, free: 1.59 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/1.081, allocations: 8.031 kB / 1.057 GB, free: 1.582 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008186/1.081, allocations: 95.62 kB / 1.057 GB, free: 1.488 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003607/1.082, allocations: 259.5 kB / 1.057 GB, free: 1.215 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/1.082, allocations: 15.11 kB / 1.057 GB, free: 1.207 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.812e-05/1.082, allocations: 15.94 kB / 1.058 GB, free: 1.195 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000542/1.082, allocations: 357.2 kB / 1.058 GB, free: 0.9023 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/1.082, allocations: 0 / 1.058 GB, free: 0.9023 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.073e-05/1.082, allocations: 6.812 kB / 1.058 GB, free: 0.9023 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-05/1.082, allocations: 24.19 kB / 1.058 GB, free: 0.8789 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004429/1.083, allocations: 297.1 kB / 1.058 GB, free: 0.6797 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001804/1.085, allocations: 1.727 MB / 1.06 GB, free: 15.01 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000641/1.085, allocations: 323.5 kB / 1.06 GB, free: 14.76 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001903/1.086, allocations: 136.9 kB / 1.06 GB, free: 14.66 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001815/1.086, allocations: 96.52 kB / 1.06 GB, free: 14.55 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/1.086, allocations: 38.52 kB / 1.06 GB, free: 14.5 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=20): time 1.422e-06/1.086, allocations: 0 / 1.06 GB, free: 14.5 MB / 0.6823 GB Notification: Performance of matching and sorting (n=21): time 0.000853/1.087, allocations: 365.8 kB / 1.061 GB, free: 14.2 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.378e-05/1.087, allocations: 89.05 kB / 1.061 GB, free: 14.1 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/1.087, allocations: 186.8 kB / 1.061 GB, free: 13.94 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/1.087, allocations: 29.58 kB / 1.061 GB, free: 13.91 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.594e-05/1.087, allocations: 157.2 kB / 1.061 GB, free: 13.77 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.733e-05/1.087, allocations: 70.81 kB / 1.061 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.644e-05/1.087, allocations: 11.62 kB / 1.061 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001349/1.087, allocations: 329 kB / 1.062 GB, free: 13.38 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/1.087, allocations: 111 kB / 1.062 GB, free: 13.3 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002292/1.088, allocations: 193 kB / 1.062 GB, free: 13.12 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/1.088, allocations: 148.6 kB / 1.062 GB, free: 13.02 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/1.088, allocations: 3.953 kB / 1.062 GB, free: 13.02 MB / 0.6823 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006187/1.089, allocations: 394.1 kB / 1.062 GB, free: 12.72 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005193/1.089, allocations: 1.049 MB / 1.063 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/1.089, allocations: 7.938 kB / 1.063 GB, free: 11.6 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002428/1.089, allocations: 43.56 kB / 1.063 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000319/1.09, allocations: 75.81 kB / 1.064 GB, free: 11.49 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001475/1.091, allocations: 1.502 MB / 1.065 GB, free: 9.949 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/1.091, allocations: 35.75 kB / 1.065 GB, free: 9.918 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.619e-05/1.091, allocations: 8 kB / 1.065 GB, free: 9.91 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.876e-06/1.091, allocations: 4 kB / 1.065 GB, free: 9.906 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000574/1.092, allocations: 326.9 kB / 1.065 GB, free: 9.672 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.196e-06/1.092, allocations: 352 / 1.065 GB, free: 9.672 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001305/1.092, allocations: 52.25 kB / 1.065 GB, free: 9.625 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002672/1.092, allocations: 67.27 kB / 1.065 GB, free: 9.562 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/1.094, allocations: 1.481 MB / 1.067 GB, free: 8.043 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001879/1.094, allocations: 31.19 kB / 1.067 GB, free: 8.016 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.376e-05/1.094, allocations: 11.98 kB / 1.067 GB, free: 8.004 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.0001235/1.094, allocations: 128.8 kB / 1.067 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.524e-05/1.094, allocations: 19.81 kB / 1.067 GB, free: 7.863 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005945/1.095, allocations: 336.3 kB / 1.067 GB, free: 7.609 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/1.095, allocations: 4 kB / 1.067 GB, free: 7.605 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/1.095, allocations: 0 / 1.067 GB, free: 7.605 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/1.095, allocations: 0 / 1.067 GB, free: 7.605 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001437/1.096, allocations: 0.9424 MB / 1.068 GB, free: 6.742 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/1.096, allocations: 0 / 1.068 GB, free: 6.742 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002339/1.097, allocations: 55.89 kB / 1.068 GB, free: 6.688 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000114/1.097, allocations: 43.73 kB / 1.068 GB, free: 6.648 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.018e-05/1.097, allocations: 10.88 kB / 1.068 GB, free: 6.641 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/1.098, allocations: 1.394 MB / 1.07 GB, free: 5.195 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/1.098, allocations: 4.031 kB / 1.07 GB, free: 5.191 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006305/1.098, allocations: 0.5816 MB / 1.07 GB, free: 4.609 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/1.099, allocations: 127 kB / 1.071 GB, free: 4.477 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.308e-05/1.099, allocations: 10.8 kB / 1.071 GB, free: 4.469 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002315/1.099, allocations: 27.38 kB / 1.071 GB, free: 4.445 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.577e-05/1.099, allocations: 23.84 kB / 1.071 GB, free: 4.426 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/1.099, allocations: 8 kB / 1.071 GB, free: 4.418 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001436/1.099, allocations: 154.2 kB / 1.071 GB, free: 4.289 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.81e-07/1.099, allocations: 4 kB / 1.071 GB, free: 4.285 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005672/1.1, allocations: 122.1 kB / 1.071 GB, free: 4.18 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.0001854/1.1, allocations: 122.3 kB / 1.071 GB, free: 4.055 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001047/1.101, allocations: 0.6928 MB / 1.072 GB, free: 3.477 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/1.101, allocations: 0 / 1.072 GB, free: 3.477 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003216/1.101, allocations: 260 kB / 1.072 GB, free: 3.25 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003003/1.102, allocations: 27.55 kB / 1.072 GB, free: 3.23 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007783/1.102, allocations: 422.2 kB / 1.072 GB, free: 2.836 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004152/1.103, allocations: 0.7816 MB / 1.073 GB, free: 2.039 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.000278/1.103, allocations: 98.09 kB / 1.073 GB, free: 1.945 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.103e-05/1.103, allocations: 19.44 kB / 1.073 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of SimCode: time 3.81e-07/1.103, allocations: 0 / 1.073 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of Templates: time 0.006771/1.11, allocations: 3.186 MB / 1.076 GB, free: 14.76 MB / 0.698 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