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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001415/0.001415, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.398/1.398, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.84/2.84, allocations: 472.6 MB / 0.7451 GB, free: 4.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 65.5 kB / 0.9121 GB, free: 33.28 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3771/0.3784, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004601/0.3831, allocations: 2.886 MB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002987/0.3861, allocations: 1.819 MB / 1.073 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.3862, allocations: 4 kB / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007924/0.3871, allocations: 223.1 kB / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005155/0.3876, allocations: 211 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005946/0.3882, allocations: 231 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003413/0.3886, allocations: 307.1 kB / 1.074 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003483/0.3889, allocations: 174.1 kB / 1.074 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.3891, allocations: 131.5 kB / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002714/0.3894, allocations: 147.5 kB / 1.074 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.615e-05/0.3894, allocations: 23.94 kB / 1.074 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004548/0.3899, allocations: 279.4 kB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.39, allocations: 95.72 kB / 1.075 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.3901, allocations: 111.5 kB / 1.075 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004975/0.3907, allocations: 435 kB / 1.075 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3907, allocations: 4 kB / 1.075 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3907, allocations: 0 / 1.075 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.3907, allocations: 0 / 1.075 GB, free: 3.316 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.0008603/0.3916, allocations: 0.5379 MB / 1.076 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.3916, allocations: 12.03 kB / 1.076 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008823/0.3925, allocations: 116.5 kB / 1.076 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.3928, allocations: 265.5 kB / 1.076 GB, free: 2.305 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.776e-05/0.3928, allocations: 12.75 kB / 1.076 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.94e-05/0.3929, allocations: 20.36 kB / 1.076 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00066/0.3935, allocations: 390.5 kB / 1.076 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.3936, allocations: 0 / 1.076 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.101e-05/0.3936, allocations: 7.984 kB / 1.076 GB, free: 1.852 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.351e-05/0.3937, allocations: 28.31 kB / 1.076 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006855/0.3944, allocations: 336.6 kB / 1.077 GB, free: 1.496 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001934/0.3963, allocations: 1.748 MB / 1.078 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007547/0.3971, allocations: 333.1 kB / 1.079 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002892/0.3974, allocations: 153.6 kB / 1.079 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001868/0.3976, allocations: 89.09 kB / 1.079 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.3976, allocations: 34.5 kB / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 1.112e-06/0.3976, allocations: 0 / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21): time 0.001456/0.3991, allocations: 0.5973 MB / 1.08 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.3991, allocations: 77.11 kB / 1.08 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002629/0.3994, allocations: 211.7 kB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.3994, allocations: 37.83 kB / 1.08 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.3995, allocations: 167.9 kB / 1.08 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.9e-05/0.3996, allocations: 70.95 kB / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.3997, allocations: 61.88 kB / 1.08 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.3999, allocations: 330.8 kB / 1.081 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002898/0.4002, allocations: 137.9 kB / 1.081 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003496/0.4005, allocations: 223.3 kB / 1.081 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006062/0.4011, allocations: 377 kB / 1.081 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.4011, allocations: 0 / 1.081 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008308/0.402, allocations: 437.8 kB / 1.082 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.402, allocations: 4 kB / 1.082 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.402, allocations: 4 kB / 1.082 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002199/0.4022, allocations: 45.17 kB / 1.082 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003285/0.4026, allocations: 75.81 kB / 1.082 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.4039, allocations: 1.615 MB / 1.083 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/0.4042, allocations: 31.91 kB / 1.083 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.828e-05/0.4042, allocations: 16 kB / 1.083 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003572/0.4046, allocations: 240.7 kB / 1.084 GB, free: 9.934 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003205/0.4049, allocations: 207.3 kB / 1.084 GB, free: 9.691 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000572/0.4055, allocations: 358.3 kB / 1.084 GB, free: 9.305 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.603e-06/0.4055, allocations: 0 / 1.084 GB, free: 9.305 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008128/0.4064, allocations: 430 kB / 1.085 GB, free: 8.875 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.4064, allocations: 12.03 kB / 1.085 GB, free: 8.863 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.4064, allocations: 4 kB / 1.085 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000127/0.4065, allocations: 36.83 kB / 1.085 GB, free: 8.82 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002943/0.4068, allocations: 71.88 kB / 1.085 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/0.4081, allocations: 1.611 MB / 1.086 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000283/0.4084, allocations: 35.88 kB / 1.086 GB, free: 6.961 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.356e-05/0.4084, allocations: 16 kB / 1.086 GB, free: 6.945 MB / 0.8419 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.0001364/0.4086, allocations: 196.2 kB / 1.087 GB, free: 6.746 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.136e-05/0.4086, allocations: 23.89 kB / 1.087 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006849/0.4093, allocations: 363.9 kB / 1.087 GB, free: 6.363 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.4093, allocations: 4 kB / 1.087 GB, free: 6.359 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.4093, allocations: 0 / 1.087 GB, free: 6.359 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.4094, allocations: 0 / 1.087 GB, free: 6.359 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001353/0.4107, allocations: 0.9521 MB / 1.088 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.4107, allocations: 3.984 kB / 1.088 GB, free: 5.324 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002306/0.411, allocations: 55.84 kB / 1.088 GB, free: 5.27 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001195/0.4111, allocations: 45.03 kB / 1.088 GB, free: 5.223 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.4111, allocations: 8 kB / 1.088 GB, free: 5.215 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001098/0.4122, allocations: 1.512 MB / 1.089 GB, free: 3.559 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.4122, allocations: 0 / 1.089 GB, free: 3.559 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006778/0.4129, allocations: 0.5378 MB / 1.09 GB, free: 2.984 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.4131, allocations: 128.7 kB / 1.09 GB, free: 2.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.732e-05/0.4131, allocations: 11.88 kB / 1.09 GB, free: 2.828 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.4134, allocations: 27.97 kB / 1.09 GB, free: 2.801 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/0.4134, allocations: 23.91 kB / 1.09 GB, free: 2.777 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.4135, allocations: 8 kB / 1.09 GB, free: 2.77 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001787/0.4137, allocations: 163 kB / 1.09 GB, free: 2.609 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4137, allocations: 0 / 1.09 GB, free: 2.609 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005901/0.4143, allocations: 112 kB / 1.09 GB, free: 2.5 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.000163/0.4144, allocations: 118.8 kB / 1.09 GB, free: 2.379 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001373/0.4158, allocations: 0.7652 MB / 1.091 GB, free: 1.59 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4158, allocations: 0 / 1.091 GB, free: 1.59 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003799/0.4162, allocations: 267.3 kB / 1.091 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004691/0.4167, allocations: 48.98 kB / 1.092 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009464/0.4176, allocations: 0.5553 MB / 1.092 GB, free: 0.668 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.418, allocations: 0.7717 MB / 1.093 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002683/0.4183, allocations: 89.86 kB / 1.093 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.425e-05/0.4183, allocations: 23.44 kB / 1.093 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of SimCode: time 4.31e-07/0.4184, allocations: 0 / 1.093 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of Templates: time 0.006651/0.425, allocations: 3.397 MB / 1.096 GB, free: 12.37 MB / 0.8575 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