Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001033/0.001033, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.009254/0.009254, allocations: 171.9 kB / 16.26 MB, free: 6.613 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.414/1.414, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.926/2.926, allocations: 473.4 MB / 0.7469 GB, free: 6.09 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003655/0.0003655, allocations: 10.59 kB / 0.9158 GB, free: 33.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.376/0.3764, allocations: 162.2 MB / 1.074 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003666/0.3801, allocations: 2.579 MB / 1.077 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003017/0.3831, allocations: 1.804 MB / 1.078 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.3833, allocations: 0 / 1.078 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001924/0.3835, allocations: 31.72 kB / 1.078 GB, free: 3.109 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005251/0.384, allocations: 195.2 kB / 1.079 GB, free: 2.918 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005115/0.3845, allocations: 203.5 kB / 1.079 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004406/0.385, allocations: 430.8 kB / 1.079 GB, free: 2.297 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007703/0.3858, allocations: 386.8 kB / 1.08 GB, free: 1.898 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.386, allocations: 103.5 kB / 1.08 GB, free: 1.797 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002868/0.3863, allocations: 143.5 kB / 1.08 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.767e-05/0.3863, allocations: 8 kB / 1.08 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005442/0.3869, allocations: 327.4 kB / 1.08 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.387, allocations: 79.78 kB / 1.08 GB, free: 1.25 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001478/0.3871, allocations: 133.1 kB / 1.08 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005596/0.3877, allocations: 430.9 kB / 1.081 GB, free: 0.6914 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3877, allocations: 0 / 1.081 GB, free: 0.6914 MB / 0.8262 GB Notification: Performance of FrontEnd: time 5.671e-06/0.3877, allocations: 0 / 1.081 GB, free: 0.6914 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.3877, allocations: 3.938 kB / 1.081 GB, free: 0.6875 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.0009571/0.3887, allocations: 0.5146 MB / 1.081 GB, free: 124 kB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.3888, allocations: 8.031 kB / 1.081 GB, free: 116 kB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009574/0.3897, allocations: 112.5 kB / 1.081 GB, free: 4 kB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004352/0.3902, allocations: 253.7 kB / 1.082 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.685e-05/0.3902, allocations: 20.66 kB / 1.082 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.713e-05/0.3903, allocations: 16.38 kB / 1.082 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007723/0.3911, allocations: 398.5 kB / 1.082 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.3911, allocations: 7.938 kB / 1.082 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.708e-05/0.3911, allocations: 8 kB / 1.082 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.675e-05/0.3912, allocations: 20.31 kB / 1.082 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006929/0.3919, allocations: 352.6 kB / 1.082 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002016/0.3939, allocations: 1.748 MB / 1.084 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000709/0.3946, allocations: 341 kB / 1.084 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002834/0.3949, allocations: 153.6 kB / 1.085 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000149/0.3951, allocations: 93.08 kB / 1.085 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.3951, allocations: 38.56 kB / 1.085 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 1.363e-06/0.3951, allocations: 0 / 1.085 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21): time 0.001491/0.3966, allocations: 0.6087 MB / 1.085 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.129e-05/0.3967, allocations: 85.09 kB / 1.085 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002568/0.397, allocations: 211.7 kB / 1.086 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.558e-05/0.397, allocations: 25.7 kB / 1.086 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.3971, allocations: 163.8 kB / 1.086 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.174e-05/0.3972, allocations: 74.92 kB / 1.086 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.14e-05/0.3973, allocations: 33.7 kB / 1.086 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.3974, allocations: 330.8 kB / 1.086 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003106/0.3977, allocations: 136.5 kB / 1.086 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003654/0.3981, allocations: 231.2 kB / 1.087 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000689/0.3988, allocations: 384 kB / 1.087 GB, free: 9.926 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3988, allocations: 0 / 1.087 GB, free: 9.926 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009277/0.3997, allocations: 460.8 kB / 1.087 GB, free: 9.469 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.3999, allocations: 166.5 kB / 1.088 GB, free: 9.266 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/0.3999, allocations: 4 kB / 1.088 GB, free: 9.262 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002361/0.4001, allocations: 36.83 kB / 1.088 GB, free: 9.223 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003413/0.4005, allocations: 79.88 kB / 1.088 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/0.4019, allocations: 1.497 MB / 1.089 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003136/0.4022, allocations: 39.84 kB / 1.089 GB, free: 7.461 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-05/0.4023, allocations: 24.05 kB / 1.089 GB, free: 7.438 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.001e-06/0.4023, allocations: 4 kB / 1.089 GB, free: 7.434 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000812/0.4031, allocations: 372.4 kB / 1.09 GB, free: 7.066 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.81e-06/0.4031, allocations: 12.28 kB / 1.09 GB, free: 7.055 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001411/0.4033, allocations: 48.75 kB / 1.09 GB, free: 7.004 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003096/0.4036, allocations: 67.89 kB / 1.09 GB, free: 6.938 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/0.4049, allocations: 1.481 MB / 1.091 GB, free: 5.316 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.4052, allocations: 31.91 kB / 1.091 GB, free: 5.285 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.4052, allocations: 16 kB / 1.091 GB, free: 5.27 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.0002302/0.4055, allocations: 233 kB / 1.091 GB, free: 5.031 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.152e-05/0.4056, allocations: 23.86 kB / 1.091 GB, free: 5.008 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007552/0.4063, allocations: 373.7 kB / 1.092 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.4063, allocations: 4 kB / 1.092 GB, free: 4.633 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.4063, allocations: 0 / 1.092 GB, free: 4.633 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.4064, allocations: 7.938 kB / 1.092 GB, free: 4.625 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001499/0.4079, allocations: 0.9755 MB / 1.093 GB, free: 3.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.4079, allocations: 7.938 kB / 1.093 GB, free: 3.562 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002236/0.4081, allocations: 48.19 kB / 1.093 GB, free: 3.516 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001293/0.4082, allocations: 44.81 kB / 1.093 GB, free: 3.469 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.4083, allocations: 0 / 1.093 GB, free: 3.469 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001166/0.4094, allocations: 1.409 MB / 1.094 GB, free: 1.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.4095, allocations: 11.91 kB / 1.094 GB, free: 1.918 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007588/0.4102, allocations: 0.5382 MB / 1.095 GB, free: 1.344 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.4104, allocations: 132.8 kB / 1.095 GB, free: 1.195 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.373e-05/0.4104, allocations: 7.984 kB / 1.095 GB, free: 1.188 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002821/0.4107, allocations: 27.97 kB / 1.095 GB, free: 1.16 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.232e-05/0.4108, allocations: 15.98 kB / 1.095 GB, free: 1.145 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.4108, allocations: 11.94 kB / 1.095 GB, free: 1.133 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001928/0.411, allocations: 167 kB / 1.095 GB, free: 0.9688 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.1e-07/0.411, allocations: 0 / 1.095 GB, free: 0.9688 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006426/0.4116, allocations: 108 kB / 1.095 GB, free: 0.8633 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.0001882/0.4118, allocations: 111.2 kB / 1.095 GB, free: 0.7422 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001429/0.4133, allocations: 0.7656 MB / 1.096 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4133, allocations: 0 / 1.096 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004131/0.4137, allocations: 271.2 kB / 1.096 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000525/0.4143, allocations: 40.22 kB / 1.096 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.4153, allocations: 0.6643 MB / 1.097 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/0.4157, allocations: 0.7678 MB / 1.098 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002871/0.416, allocations: 93.86 kB / 1.098 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.706e-05/0.416, allocations: 23.42 kB / 1.098 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of SimCode: time 4.61e-07/0.416, allocations: 0 / 1.098 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of Templates: time 0.007074/0.4231, allocations: 3.176 MB / 1.101 GB, free: 10.86 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)