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.407/1.407, allocations: 251.9 MB / 266.9 MB, free: 11 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.001192/0.001192, allocations: 180.9 kB / 326.5 MB, free: 2.227 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.869/1.869, allocations: 205.4 MB / 0.5775 GB, free: 20.27 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.0009321/0.0009323, allocations: 86.42 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003471/0.0003471, allocations: 8.562 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2543, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2021/0.4565, allocations: 152.6 MB / 1.049 GB, free: 7.145 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003742/0.4569, allocations: 87.95 kB / 1.049 GB, free: 7.059 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.5543/1.011, allocations: 16.32 MB / 1.065 GB, free: 151 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.936e-06/1.011, allocations: 0 / 1.065 GB, free: 151 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.41e-05/1.011, allocations: 4.25 kB / 1.065 GB, free: 151 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001107/1.012, allocations: 0.5428 MB / 1.066 GB, free: 150.6 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/1.012, allocations: 9.531 kB / 1.066 GB, free: 150.6 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009801/1.013, allocations: 93.16 kB / 1.066 GB, free: 150.5 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005121/1.014, allocations: 263.2 kB / 1.066 GB, free: 150.3 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.156e-05/1.014, allocations: 16.42 kB / 1.066 GB, free: 150.3 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.367e-05/1.014, allocations: 16.55 kB / 1.066 GB, free: 150.3 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008073/1.015, allocations: 379.1 kB / 1.066 GB, free: 150.2 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/1.015, allocations: 1 kB / 1.066 GB, free: 150.2 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.814e-05/1.015, allocations: 11.44 kB / 1.066 GB, free: 150.2 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.306e-05/1.015, allocations: 23 kB / 1.066 GB, free: 150.2 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007486/1.016, allocations: 334.6 kB / 1.067 GB, free: 150.2 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002014/1.018, allocations: 1.729 MB / 1.068 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007663/1.019, allocations: 340 kB / 1.069 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001579/1.019, allocations: 88.95 kB / 1.069 GB, free: 148.8 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/1.019, allocations: 43.95 kB / 1.069 GB, free: 148.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=20): time 2.064e-06/1.019, allocations: 0 / 1.069 GB, free: 148.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=21): time 0.001515/1.02, allocations: 0.5994 MB / 1.069 GB, free: 148.5 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/1.02, allocations: 85.05 kB / 1.07 GB, free: 148.4 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002229/1.021, allocations: 187.4 kB / 1.07 GB, free: 148.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/1.021, allocations: 26.42 kB / 1.07 GB, free: 148.3 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 8.785e-05/1.021, allocations: 157.3 kB / 1.07 GB, free: 148.2 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.671e-05/1.021, allocations: 84.86 kB / 1.07 GB, free: 148.1 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.592e-05/1.021, allocations: 4.156 kB / 1.07 GB, free: 148.1 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.252e-05/1.021, allocations: 334 kB / 1.07 GB, free: 147.8 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002889/1.021, allocations: 130.2 kB / 1.07 GB, free: 147.8 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003103/1.022, allocations: 218.9 kB / 1.071 GB, free: 147.7 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003493/1.022, allocations: 163.3 kB / 1.071 GB, free: 147.7 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/1.022, allocations: 0.6875 kB / 1.071 GB, free: 147.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008999/1.023, allocations: 441.3 kB / 1.071 GB, free: 147.6 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.000277/1.023, allocations: 1.049 MB / 1.072 GB, free: 146.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/1.023, allocations: 3.062 kB / 1.072 GB, free: 146.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000282/1.023, allocations: 47.47 kB / 1.072 GB, free: 146.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003539/1.024, allocations: 71.08 kB / 1.072 GB, free: 146.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001351/1.025, allocations: 1.514 MB / 1.074 GB, free: 145.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002816/1.026, allocations: 37.58 kB / 1.074 GB, free: 145.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.491e-05/1.026, allocations: 9.625 kB / 1.074 GB, free: 145.2 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/1.026, allocations: 8.156 kB / 1.074 GB, free: 145.2 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009187/1.026, allocations: 374.5 kB / 1.074 GB, free: 145.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/1.027, allocations: 3.5 kB / 1.074 GB, free: 145.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001389/1.027, allocations: 39.98 kB / 1.074 GB, free: 145.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002946/1.027, allocations: 70.58 kB / 1.074 GB, free: 145.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/1.028, allocations: 1.492 MB / 1.076 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/1.028, allocations: 33.5 kB / 1.076 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.787e-05/1.028, allocations: 12.81 kB / 1.076 GB, free: 143.8 MB / 0.698 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 () * Number of clocked 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.0002366/1.029, allocations: 236.3 kB / 1.076 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.249e-05/1.029, allocations: 18.06 kB / 1.076 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008151/1.029, allocations: 377.3 kB / 1.076 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.086e-06/1.029, allocations: 2.781 kB / 1.076 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/1.029, allocations: 4.875 kB / 1.076 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/1.029, allocations: 1.25 kB / 1.076 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001654/1.031, allocations: 0.9685 MB / 1.077 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/1.031, allocations: 2.312 kB / 1.077 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002323/1.031, allocations: 61.05 kB / 1.077 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001245/1.032, allocations: 38.5 kB / 1.077 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/1.032, allocations: 11.14 kB / 1.077 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008661/1.032, allocations: 1.409 MB / 1.079 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/1.032, allocations: 2.625 kB / 1.079 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007112/1.033, allocations: 0.6258 MB / 1.079 GB, free: 141.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/1.033, allocations: 125.3 kB / 1.08 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.206e-05/1.033, allocations: 4.062 kB / 1.08 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/1.034, allocations: 32.05 kB / 1.08 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/1.034, allocations: 23.73 kB / 1.08 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.279e-05/1.034, allocations: 6.781 kB / 1.08 GB, free: 141.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001585/1.034, allocations: 156 kB / 1.08 GB, free: 141.2 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.71e-07/1.034, allocations: 0 / 1.08 GB, free: 141.2 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008109/1.035, allocations: 118.7 kB / 1.08 GB, free: 141.2 MB / 0.698 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 () * Number of clocked 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.0002223/1.035, allocations: 127.1 kB / 1.08 GB, free: 141.1 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001425/1.036, allocations: 0.7409 MB / 1.081 GB, free: 140.9 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/1.036, allocations: 0.9375 kB / 1.081 GB, free: 140.9 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004035/1.037, allocations: 280.4 kB / 1.081 GB, free: 140.7 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/1.037, allocations: 30.58 kB / 1.081 GB, free: 140.7 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/1.038, allocations: 0.6521 MB / 1.082 GB, free: 140.4 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/1.039, allocations: 0.7876 MB / 1.082 GB, free: 139.7 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002911/1.039, allocations: 92.92 kB / 1.083 GB, free: 139.6 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.496e-05/1.039, allocations: 28 kB / 1.083 GB, free: 139.6 MB / 0.698 GB Notification: Performance of SimCode: time 1.442e-06/1.039, allocations: 0 / 1.083 GB, free: 139.6 MB / 0.698 GB Notification: Performance of Templates: time 0.007527/1.047, allocations: 2.983 MB / 1.086 GB, free: 139.4 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