Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001265/0.001265, allocations: 108 kB / 15.61 MB, free: 152 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.001333/0.001333, allocations: 194 kB / 16.53 MB, free: 6.664 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.369/1.369, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.776/2.776, allocations: 472.6 MB / 0.7451 GB, free: 4.672 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 62.8 kB / 0.912 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3955/0.3974, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004914/0.4023, allocations: 2.882 MB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002974/0.4053, allocations: 1.823 MB / 1.073 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002625/0.4056, allocations: 4 kB / 1.073 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0009911/0.4067, allocations: 234.1 kB / 1.073 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0006584/0.4074, allocations: 207.1 kB / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006612/0.408, allocations: 223.4 kB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004249/0.4085, allocations: 303.1 kB / 1.074 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003906/0.4089, allocations: 186.1 kB / 1.074 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000294/0.4092, allocations: 131.6 kB / 1.074 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003365/0.4095, allocations: 147.5 kB / 1.074 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.403e-05/0.4096, allocations: 23.94 kB / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006073/0.4102, allocations: 279.4 kB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001211/0.4103, allocations: 83.8 kB / 1.074 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001348/0.4105, allocations: 115.5 kB / 1.075 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007547/0.4112, allocations: 431 kB / 1.075 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.4113, allocations: 4 kB / 1.075 GB, free: 3.391 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4113, allocations: 0 / 1.075 GB, free: 3.391 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.623e-05/0.4113, allocations: 0 / 1.075 GB, free: 3.391 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.001014/0.4123, allocations: 0.5549 MB / 1.076 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.4124, allocations: 8.031 kB / 1.076 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.4134, allocations: 112.5 kB / 1.076 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003792/0.4138, allocations: 255.9 kB / 1.076 GB, free: 2.379 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.4138, allocations: 20.73 kB / 1.076 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.998e-05/0.4138, allocations: 16.38 kB / 1.076 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007735/0.4146, allocations: 390.5 kB / 1.076 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.4147, allocations: 3.938 kB / 1.076 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/0.4147, allocations: 8 kB / 1.076 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.555e-05/0.4147, allocations: 24.31 kB / 1.076 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000703/0.4155, allocations: 344.6 kB / 1.077 GB, free: 1.555 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002037/0.4175, allocations: 1.74 MB / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007523/0.4183, allocations: 341 kB / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002765/0.4186, allocations: 145.6 kB / 1.079 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001615/0.4187, allocations: 93.08 kB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.4188, allocations: 38.56 kB / 1.079 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 2.024e-06/0.4188, allocations: 4 kB / 1.079 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21): time 0.00145/0.4202, allocations: 0.5894 MB / 1.08 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.569e-05/0.4203, allocations: 81.11 kB / 1.08 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.4206, allocations: 219.9 kB / 1.08 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.4206, allocations: 29.7 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.4207, allocations: 155.9 kB / 1.08 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.726e-05/0.4208, allocations: 82.92 kB / 1.08 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.4209, allocations: 53.89 kB / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.4211, allocations: 334.8 kB / 1.08 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000312/0.4214, allocations: 145.9 kB / 1.081 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003397/0.4217, allocations: 219.1 kB / 1.081 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006396/0.4224, allocations: 377.2 kB / 1.081 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.4224, allocations: 0 / 1.081 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008971/0.4233, allocations: 437.8 kB / 1.082 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.4233, allocations: 8 kB / 1.082 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.4233, allocations: 4 kB / 1.082 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002572/0.4236, allocations: 45.16 kB / 1.082 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003502/0.424, allocations: 71.88 kB / 1.082 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001576/0.4256, allocations: 1.607 MB / 1.083 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003281/0.4259, allocations: 31.91 kB / 1.083 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.077e-05/0.426, allocations: 15.98 kB / 1.083 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003756/0.4263, allocations: 244.7 kB / 1.084 GB, free: 9.996 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003245/0.4267, allocations: 215.2 kB / 1.084 GB, free: 9.746 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005778/0.4273, allocations: 348.9 kB / 1.084 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.135e-06/0.4273, allocations: 4 kB / 1.084 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008848/0.4282, allocations: 429.9 kB / 1.085 GB, free: 8.934 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.4282, allocations: 8 kB / 1.085 GB, free: 8.926 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.347e-06/0.4282, allocations: 0 / 1.085 GB, free: 8.926 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001608/0.4284, allocations: 48.75 kB / 1.085 GB, free: 8.875 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003033/0.4287, allocations: 67.89 kB / 1.085 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001448/0.4302, allocations: 1.603 MB / 1.086 GB, free: 7.062 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003097/0.4305, allocations: 39.88 kB / 1.086 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.394e-05/0.4305, allocations: 11.98 kB / 1.086 GB, free: 7.012 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.0001747/0.4307, allocations: 198.3 kB / 1.086 GB, free: 6.812 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.772e-05/0.4308, allocations: 19.75 kB / 1.086 GB, free: 6.793 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007217/0.4315, allocations: 365.8 kB / 1.087 GB, free: 6.434 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.4315, allocations: 4 kB / 1.087 GB, free: 6.43 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.4315, allocations: 0 / 1.087 GB, free: 6.43 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.4315, allocations: 7.984 kB / 1.087 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001536/0.4331, allocations: 0.956 MB / 1.088 GB, free: 5.387 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.4331, allocations: 0 / 1.088 GB, free: 5.387 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002469/0.4334, allocations: 55.95 kB / 1.088 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001364/0.4335, allocations: 37.19 kB / 1.088 GB, free: 5.293 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.4335, allocations: 11.94 kB / 1.088 GB, free: 5.281 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001453/0.435, allocations: 1.52 MB / 1.089 GB, free: 3.617 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.435, allocations: 7.969 kB / 1.089 GB, free: 3.609 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007586/0.4358, allocations: 0.5397 MB / 1.09 GB, free: 3.035 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.4359, allocations: 120.8 kB / 1.09 GB, free: 2.898 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.82e-05/0.436, allocations: 15.88 kB / 1.09 GB, free: 2.883 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002678/0.4363, allocations: 27.95 kB / 1.09 GB, free: 2.855 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.699e-05/0.4363, allocations: 15.98 kB / 1.09 GB, free: 2.84 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.4364, allocations: 12 kB / 1.09 GB, free: 2.828 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000209/0.4366, allocations: 159 kB / 1.09 GB, free: 2.672 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.61e-07/0.4366, allocations: 0 / 1.09 GB, free: 2.672 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006772/0.4373, allocations: 116 kB / 1.09 GB, free: 2.559 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.0001917/0.4375, allocations: 114.2 kB / 1.09 GB, free: 2.441 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001607/0.4391, allocations: 0.7589 MB / 1.091 GB, free: 1.656 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.4391, allocations: 4 kB / 1.091 GB, free: 1.652 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004225/0.4395, allocations: 275.8 kB / 1.091 GB, free: 1.371 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005005/0.4401, allocations: 33.55 kB / 1.091 GB, free: 1.34 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001117/0.4412, allocations: 0.5476 MB / 1.092 GB, free: 0.7461 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004347/0.4416, allocations: 0.7717 MB / 1.093 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003158/0.442, allocations: 97.92 kB / 1.093 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.201e-05/0.4421, allocations: 19.44 kB / 1.093 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of SimCode: time 5.81e-07/0.4421, allocations: 0 / 1.093 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of Templates: time 0.007969/0.45, allocations: 3.412 MB / 1.096 GB, free: 12.43 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_1.6_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_1.6_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_1.6_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)