Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008719/0.0008721, allocations: 98.19 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01263/0.01263, allocations: 169 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.775/2.775, allocations: 462.7 MB / 0.7364 GB, free: 288 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003734/0.0003736, allocations: 8.344 kB / 0.9028 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3832/0.3836, allocations: 159.6 MB / 1.059 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003534/0.3872, allocations: 2.592 MB / 1.061 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002881/0.3901, allocations: 1.796 MB / 1.063 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.3903, allocations: 0 / 1.063 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001872/0.3905, allocations: 31.72 kB / 1.063 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000639/0.3911, allocations: 195.3 kB / 1.063 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006609/0.3918, allocations: 203.5 kB / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004707/0.3923, allocations: 430.8 kB / 1.064 GB, free: 244 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007794/0.3931, allocations: 375 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001882/0.3933, allocations: 107.5 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002943/0.3936, allocations: 147.5 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.569e-05/0.3936, allocations: 8 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005657/0.3942, allocations: 335.3 kB / 1.065 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.922e-05/0.3943, allocations: 67.81 kB / 1.065 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.3944, allocations: 129.1 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005577/0.395, allocations: 438.8 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.395, allocations: 0 / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.114e-06/0.395, allocations: 0 / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.395, allocations: 0 / 1.065 GB, free: 14.64 MB / 0.8262 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.0008382/0.3958, allocations: 0.5185 MB / 1.066 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.3959, allocations: 8.031 kB / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009086/0.3968, allocations: 108.5 kB / 1.066 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000295/0.3971, allocations: 261.4 kB / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/0.3972, allocations: 20.73 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.098e-05/0.3972, allocations: 20.38 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006835/0.3979, allocations: 402.5 kB / 1.067 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.3979, allocations: 0 / 1.067 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.398, allocations: 8 kB / 1.067 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.605e-05/0.398, allocations: 24.31 kB / 1.067 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007142/0.3987, allocations: 352.6 kB / 1.067 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.4007, allocations: 1.744 MB / 1.069 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000695/0.4014, allocations: 333.1 kB / 1.069 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002717/0.4017, allocations: 153.6 kB / 1.069 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001426/0.4018, allocations: 93.09 kB / 1.069 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.4019, allocations: 34.56 kB / 1.069 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 2.675e-06/0.4019, allocations: 0 / 1.069 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21): time 0.001434/0.4033, allocations: 0.6132 MB / 1.07 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/0.4034, allocations: 81.11 kB / 1.07 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002554/0.4037, allocations: 215.7 kB / 1.07 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.4037, allocations: 25.7 kB / 1.07 GB, free: 9.293 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.4038, allocations: 163.9 kB / 1.07 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.96e-05/0.4039, allocations: 74.92 kB / 1.07 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.901e-05/0.4039, allocations: 25.72 kB / 1.07 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.4041, allocations: 334.8 kB / 1.071 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000322/0.4044, allocations: 140.5 kB / 1.071 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003699/0.4048, allocations: 227.2 kB / 1.071 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006197/0.4054, allocations: 384 kB / 1.071 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4054, allocations: 4 kB / 1.071 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008957/0.4063, allocations: 447.6 kB / 1.072 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001243/0.4065, allocations: 170.6 kB / 1.072 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.4065, allocations: 4 kB / 1.072 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000257/0.4068, allocations: 40.83 kB / 1.072 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003513/0.4071, allocations: 75.88 kB / 1.072 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/0.4086, allocations: 1.501 MB / 1.074 GB, free: 5.461 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003238/0.4089, allocations: 35.89 kB / 1.074 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.733e-05/0.4089, allocations: 19.94 kB / 1.074 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.532e-06/0.409, allocations: 4 kB / 1.074 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007796/0.4097, allocations: 386.5 kB / 1.074 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.4098, allocations: 7.938 kB / 1.074 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001192/0.4099, allocations: 40.83 kB / 1.074 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003036/0.4102, allocations: 75.81 kB / 1.074 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.4114, allocations: 1.481 MB / 1.076 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002421/0.4116, allocations: 35.81 kB / 1.076 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.4117, allocations: 20.06 kB / 1.076 GB, free: 3.223 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002026/0.4119, allocations: 225 kB / 1.076 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.652e-05/0.412, allocations: 23.81 kB / 1.076 GB, free: 2.969 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000689/0.4126, allocations: 373.8 kB / 1.076 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.4127, allocations: 3.984 kB / 1.076 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.4127, allocations: 4 kB / 1.076 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.014e-06/0.4127, allocations: 3.938 kB / 1.076 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/0.4142, allocations: 0.981 MB / 1.077 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.4142, allocations: 4 kB / 1.077 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002224/0.4144, allocations: 47.95 kB / 1.077 GB, free: 1.477 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000117/0.4146, allocations: 44.77 kB / 1.077 GB, free: 1.43 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.4146, allocations: 8.062 kB / 1.077 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/0.4157, allocations: 1.406 MB / 1.079 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.4158, allocations: 7.969 kB / 1.079 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009475/0.4167, allocations: 0.546 MB / 1.079 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.4168, allocations: 128.8 kB / 1.079 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.04e-05/0.4169, allocations: 4 kB / 1.079 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002625/0.4172, allocations: 27.97 kB / 1.079 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.258e-05/0.4172, allocations: 23.97 kB / 1.079 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.4173, allocations: 8 kB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001885/0.4174, allocations: 163 kB / 1.08 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.21e-07/0.4175, allocations: 0 / 1.08 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006114/0.4181, allocations: 108 kB / 1.08 GB, free: 14.82 MB / 0.8419 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001864/0.4183, allocations: 107.2 kB / 1.08 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001396/0.4197, allocations: 0.7592 MB / 1.081 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.4197, allocations: 3.938 kB / 1.081 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000416/0.4201, allocations: 279.5 kB / 1.081 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005475/0.4207, allocations: 33.86 kB / 1.081 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.4217, allocations: 0.6591 MB / 1.081 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004982/0.4223, allocations: 0.7716 MB / 1.082 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002973/0.4226, allocations: 97.84 kB / 1.082 GB, free: 12 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.787e-05/0.4226, allocations: 19.44 kB / 1.082 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of SimCode: time 2.6e-07/0.4227, allocations: 0 / 1.082 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of Templates: time 0.007162/0.4298, allocations: 3.18 MB / 1.085 GB, free: 8.812 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches