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.0008944/0.0008947, allocations: 98.27 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.007499/0.007499, allocations: 169 kB / 16.26 MB, free: 6.66 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.468/1.468, 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.867/2.867, allocations: 473.4 MB / 0.7469 GB, free: 6.055 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003631, allocations: 12.19 kB / 0.9158 GB, free: 33.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3486, 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.003484/0.3522, allocations: 2.579 MB / 1.077 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002861/0.355, allocations: 1.788 MB / 1.078 GB, free: 3.156 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.3552, allocations: 7.938 kB / 1.078 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.3554, allocations: 31.77 kB / 1.078 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005047/0.3559, allocations: 187.3 kB / 1.079 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004993/0.3564, allocations: 211.5 kB / 1.079 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000439/0.3568, allocations: 434.8 kB / 1.079 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007788/0.3576, allocations: 390.7 kB / 1.08 GB, free: 1.898 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.3578, allocations: 95.62 kB / 1.08 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002644/0.3581, allocations: 143.5 kB / 1.08 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.832e-05/0.3581, allocations: 12 kB / 1.08 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004847/0.3586, allocations: 335.3 kB / 1.08 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001411/0.3588, allocations: 71.69 kB / 1.08 GB, free: 1.254 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.3589, allocations: 129.2 kB / 1.08 GB, free: 1.121 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004961/0.3594, allocations: 438.9 kB / 1.081 GB, free: 0.6914 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3594, allocations: 4 kB / 1.081 GB, free: 0.6875 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.296e-06/0.3594, allocations: 0 / 1.081 GB, free: 0.6875 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.682e-06/0.3594, allocations: 0 / 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.000869/0.3603, allocations: 0.5068 MB / 1.081 GB, free: 132 kB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.3604, allocations: 12.03 kB / 1.081 GB, free: 120 kB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009069/0.3613, allocations: 104.5 kB / 1.081 GB, free: 16 kB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.3616, allocations: 267.8 kB / 1.082 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.3616, allocations: 16.75 kB / 1.082 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.052e-05/0.3617, allocations: 16.38 kB / 1.082 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006775/0.3624, allocations: 398.5 kB / 1.082 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.3624, allocations: 0 / 1.082 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.585e-05/0.3625, allocations: 11.98 kB / 1.082 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.124e-05/0.3625, allocations: 24.31 kB / 1.082 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007242/0.3632, allocations: 360.6 kB / 1.082 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002066/0.3653, allocations: 1.74 MB / 1.084 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007498/0.3661, allocations: 338.3 kB / 1.084 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002811/0.3664, allocations: 157.6 kB / 1.085 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001635/0.3665, allocations: 85.11 kB / 1.085 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.3666, allocations: 38.56 kB / 1.085 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 1.423e-06/0.3666, allocations: 0 / 1.085 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21): time 0.001425/0.368, allocations: 0.6129 MB / 1.085 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.3681, allocations: 77.11 kB / 1.085 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002529/0.3683, allocations: 215.7 kB / 1.086 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.3684, allocations: 33.7 kB / 1.086 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.3685, allocations: 159.9 kB / 1.086 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.173e-05/0.3686, allocations: 78.94 kB / 1.086 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.189e-05/0.3686, allocations: 29.7 kB / 1.086 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001389/0.3688, allocations: 326.8 kB / 1.086 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000299/0.3691, allocations: 136.5 kB / 1.086 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003746/0.3695, allocations: 231.2 kB / 1.087 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006219/0.3701, allocations: 384 kB / 1.087 GB, free: 9.934 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.3701, allocations: 4 kB / 1.087 GB, free: 9.93 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009213/0.371, allocations: 452.5 kB / 1.087 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001263/0.3712, allocations: 170.5 kB / 1.088 GB, free: 9.273 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.3712, allocations: 4 kB / 1.088 GB, free: 9.27 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002479/0.3714, allocations: 48.77 kB / 1.088 GB, free: 9.219 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003602/0.3718, allocations: 75.88 kB / 1.088 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/0.3732, allocations: 1.493 MB / 1.089 GB, free: 7.504 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003214/0.3736, allocations: 43.8 kB / 1.089 GB, free: 7.461 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/0.3736, allocations: 8 kB / 1.089 GB, free: 7.453 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.613e-06/0.3736, allocations: 4 kB / 1.089 GB, free: 7.449 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000828/0.3745, allocations: 388.5 kB / 1.09 GB, free: 7.066 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.3745, allocations: 7.938 kB / 1.09 GB, free: 7.059 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001252/0.3746, allocations: 36.83 kB / 1.09 GB, free: 7.02 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003092/0.3749, allocations: 75.88 kB / 1.09 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/0.3762, allocations: 1.493 MB / 1.091 GB, free: 5.312 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002614/0.3764, allocations: 35.91 kB / 1.091 GB, free: 5.277 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.3765, allocations: 12.06 kB / 1.091 GB, free: 5.266 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.0002259/0.3767, allocations: 237.6 kB / 1.091 GB, free: 5.023 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.622e-05/0.3768, allocations: 19.72 kB / 1.091 GB, free: 5.004 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007527/0.3775, allocations: 373.2 kB / 1.092 GB, free: 4.633 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.3776, allocations: 4 kB / 1.092 GB, free: 4.629 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.3776, allocations: 0 / 1.092 GB, free: 4.629 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.3776, allocations: 3.938 kB / 1.092 GB, free: 4.625 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001504/0.3791, allocations: 0.9717 MB / 1.093 GB, free: 3.574 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/0.3791, allocations: 4 kB / 1.093 GB, free: 3.57 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000241/0.3794, allocations: 55.89 kB / 1.093 GB, free: 3.516 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001279/0.3795, allocations: 36.83 kB / 1.093 GB, free: 3.477 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.292e-05/0.3795, allocations: 8 kB / 1.093 GB, free: 3.469 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/0.3807, allocations: 1.406 MB / 1.094 GB, free: 1.934 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.3807, allocations: 3.938 kB / 1.094 GB, free: 1.93 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007531/0.3814, allocations: 0.5499 MB / 1.095 GB, free: 1.344 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.3816, allocations: 128.8 kB / 1.095 GB, free: 1.199 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.4e-05/0.3816, allocations: 8 kB / 1.095 GB, free: 1.191 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002735/0.3819, allocations: 23.97 kB / 1.095 GB, free: 1.168 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.198e-05/0.382, allocations: 24.05 kB / 1.095 GB, free: 1.145 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.382, allocations: 12 kB / 1.095 GB, free: 1.133 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000196/0.3822, allocations: 163 kB / 1.095 GB, free: 0.9727 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3822, allocations: 0 / 1.095 GB, free: 0.9727 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006259/0.3828, allocations: 112 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.0001672/0.383, allocations: 115.1 kB / 1.095 GB, free: 0.7383 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001396/0.3844, allocations: 0.7654 MB / 1.096 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.3844, allocations: 0 / 1.096 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004082/0.3848, allocations: 275.5 kB / 1.096 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005257/0.3854, allocations: 33.7 kB / 1.096 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.3864, allocations: 0.655 MB / 1.097 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003758/0.3868, allocations: 0.7717 MB / 1.098 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002929/0.3871, allocations: 89.86 kB / 1.098 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.182e-05/0.3872, allocations: 19.44 kB / 1.098 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.3872, allocations: 0 / 1.098 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of Templates: time 0.006806/0.394, allocations: 3.188 MB / 1.101 GB, free: 10.85 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)