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.001517/0.001517, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001319/0.001319, allocations: 193.7 kB / 16.14 MB, free: 6.688 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.445/1.445, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.768/2.768, allocations: 472.6 MB / 0.7447 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 59.59 kB / 0.9113 GB, free: 33.72 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3528/0.3541, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004305/0.3584, allocations: 2.926 MB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002731/0.3612, allocations: 1.839 MB / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.3613, allocations: 4 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007664/0.3621, allocations: 215.2 kB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000429/0.3626, allocations: 187.3 kB / 1.073 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000483/0.3631, allocations: 203.5 kB / 1.073 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000425/0.3635, allocations: 434.8 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003738/0.3639, allocations: 182 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001779/0.3641, allocations: 103.6 kB / 1.073 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002582/0.3643, allocations: 151.4 kB / 1.074 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.627e-05/0.3644, allocations: 16 kB / 1.074 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005104/0.3649, allocations: 343.3 kB / 1.074 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.514e-05/0.365, allocations: 83.72 kB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.3651, allocations: 107.4 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004779/0.3656, allocations: 443 kB / 1.075 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3656, allocations: 0 / 1.075 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.22e-07/0.3656, allocations: 0 / 1.075 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.3656, allocations: 0 / 1.075 GB, free: 3.691 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.0009561/0.3666, allocations: 0.5458 MB / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.3666, allocations: 8.031 kB / 1.075 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009317/0.3676, allocations: 112.5 kB / 1.075 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003077/0.3679, allocations: 263.8 kB / 1.075 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.3679, allocations: 16.75 kB / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.843e-05/0.368, allocations: 16.38 kB / 1.075 GB, free: 2.648 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006808/0.3687, allocations: 386.5 kB / 1.076 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.3687, allocations: 4 kB / 1.076 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.3687, allocations: 8 kB / 1.076 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.21e-05/0.3688, allocations: 20.31 kB / 1.076 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006916/0.3695, allocations: 344.6 kB / 1.076 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.3715, allocations: 1.748 MB / 1.078 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007253/0.3722, allocations: 329.1 kB / 1.078 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002787/0.3725, allocations: 151.3 kB / 1.078 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001502/0.3726, allocations: 89.11 kB / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.407e-05/0.3727, allocations: 42.53 kB / 1.078 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 1.543e-06/0.3727, allocations: 0 / 1.078 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21): time 0.00145/0.3741, allocations: 0.5917 MB / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.3742, allocations: 81.11 kB / 1.079 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002598/0.3745, allocations: 223.8 kB / 1.079 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.3745, allocations: 25.7 kB / 1.079 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.3746, allocations: 159.9 kB / 1.08 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.984e-05/0.3747, allocations: 74.92 kB / 1.08 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.3748, allocations: 65.88 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.3749, allocations: 326.8 kB / 1.08 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000316/0.3753, allocations: 145.8 kB / 1.08 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003537/0.3756, allocations: 219.3 kB / 1.08 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006234/0.3763, allocations: 380.7 kB / 1.081 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.3763, allocations: 4 kB / 1.081 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009026/0.3772, allocations: 429.8 kB / 1.081 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.3772, allocations: 9.719 kB / 1.081 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3772, allocations: 4.328 kB / 1.081 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002336/0.3775, allocations: 48.77 kB / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003651/0.3778, allocations: 71.88 kB / 1.081 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/0.3793, allocations: 1.489 MB / 1.083 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003312/0.3796, allocations: 39.8 kB / 1.083 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.199e-05/0.3797, allocations: 19.98 kB / 1.083 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003834/0.3801, allocations: 236.6 kB / 1.083 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003251/0.3804, allocations: 219.3 kB / 1.083 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005697/0.381, allocations: 344.8 kB / 1.083 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.486e-06/0.381, allocations: 4 kB / 1.083 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008874/0.3819, allocations: 426.8 kB / 1.084 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.3819, allocations: 4.375 kB / 1.084 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.3819, allocations: 8 kB / 1.084 GB, free: 9.355 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001561/0.3821, allocations: 44.81 kB / 1.084 GB, free: 9.309 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.3824, allocations: 71.88 kB / 1.084 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/0.3837, allocations: 1.497 MB / 1.085 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003036/0.384, allocations: 31.81 kB / 1.086 GB, free: 7.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.3841, allocations: 12 kB / 1.086 GB, free: 7.559 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.0001509/0.3842, allocations: 201.9 kB / 1.086 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.124e-05/0.3843, allocations: 19.81 kB / 1.086 GB, free: 7.336 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007064/0.385, allocations: 357.8 kB / 1.086 GB, free: 6.984 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.3851, allocations: 19.86 kB / 1.086 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.3851, allocations: 4 kB / 1.086 GB, free: 6.961 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3851, allocations: 0 / 1.086 GB, free: 6.961 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001442/0.3865, allocations: 0.9618 MB / 1.087 GB, free: 5.922 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3865, allocations: 0 / 1.087 GB, free: 5.922 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002341/0.3868, allocations: 51.89 kB / 1.087 GB, free: 5.871 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001256/0.3869, allocations: 36.83 kB / 1.087 GB, free: 5.832 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.3869, allocations: 8 kB / 1.087 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001155/0.3881, allocations: 1.413 MB / 1.089 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.3881, allocations: 4.031 kB / 1.089 GB, free: 4.27 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007203/0.3888, allocations: 0.5315 MB / 1.089 GB, free: 3.699 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.389, allocations: 124.8 kB / 1.089 GB, free: 3.559 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.049e-05/0.389, allocations: 15.88 kB / 1.089 GB, free: 3.543 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.3893, allocations: 23.97 kB / 1.089 GB, free: 3.52 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.197e-05/0.3894, allocations: 15.97 kB / 1.089 GB, free: 3.504 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.3894, allocations: 19.88 kB / 1.089 GB, free: 3.484 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002142/0.3896, allocations: 163 kB / 1.089 GB, free: 3.324 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3896, allocations: 4 kB / 1.089 GB, free: 3.32 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006472/0.3903, allocations: 108 kB / 1.089 GB, free: 3.215 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.0001723/0.3905, allocations: 103.2 kB / 1.09 GB, free: 3.105 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001417/0.3919, allocations: 0.7439 MB / 1.09 GB, free: 2.336 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3919, allocations: 1 kB / 1.09 GB, free: 2.336 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000405/0.3923, allocations: 274.6 kB / 1.091 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004819/0.3928, allocations: 34.94 kB / 1.091 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/0.3939, allocations: 0.6415 MB / 1.091 GB, free: 1.336 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003629/0.3942, allocations: 0.7639 MB / 1.092 GB, free: 0.543 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002953/0.3945, allocations: 93.89 kB / 1.092 GB, free: 460 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.429e-05/0.3946, allocations: 31.42 kB / 1.092 GB, free: 432 kB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/0.3946, allocations: 0 / 1.092 GB, free: 432 kB / 0.8419 GB Notification: Performance of Templates: time 0.006964/0.4016, allocations: 3.253 MB / 1.095 GB, free: 13.18 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)