Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001916/0.001915, 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.002353/0.002353, allocations: 192.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.727/1.727, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.741/1.741, allocations: 251.7 MB / 0.5092 GB, free: 3.117 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 67.91 kB / 0.6223 GB, free: 1.477 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6464/0.6484, allocations: 104.7 MB / 0.7245 GB, free: 12.92 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.005091/0.6535, allocations: 2.899 MB / 0.7273 GB, free: 10 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002833/0.6564, allocations: 1.683 MB / 0.729 GB, free: 8.305 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.6566, allocations: 8 kB / 0.729 GB, free: 8.297 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0008174/0.6574, allocations: 234.9 kB / 0.7292 GB, free: 8.066 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004495/0.6579, allocations: 187.2 kB / 0.7294 GB, free: 7.883 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005947/0.6585, allocations: 238.1 kB / 0.7296 GB, free: 7.652 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003642/0.6588, allocations: 307 kB / 0.7299 GB, free: 7.352 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003752/0.6592, allocations: 180.3 kB / 0.7301 GB, free: 7.18 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002003/0.6594, allocations: 123.5 kB / 0.7302 GB, free: 7.059 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003299/0.6598, allocations: 147.5 kB / 0.7303 GB, free: 6.914 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.071e-05/0.6598, allocations: 20 kB / 0.7304 GB, free: 6.895 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000424/0.6603, allocations: 251.5 kB / 0.7306 GB, free: 6.648 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.6604, allocations: 79.8 kB / 0.7307 GB, free: 6.57 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.6605, allocations: 119.4 kB / 0.7308 GB, free: 6.453 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005468/0.6611, allocations: 418.7 kB / 0.7312 GB, free: 6.043 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.6611, allocations: 4 kB / 0.7312 GB, free: 6.039 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.804e-06/0.6611, allocations: 0 / 0.7312 GB, free: 6.039 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.834e-06/0.6611, allocations: 0 / 0.7312 GB, free: 6.039 MB / 0.545 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.001055/0.6622, allocations: 0.5379 MB / 0.7317 GB, free: 5.449 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.6622, allocations: 12.03 kB / 0.7317 GB, free: 5.438 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007848/0.663, allocations: 84.56 kB / 0.7318 GB, free: 5.355 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003801/0.6634, allocations: 259.9 kB / 0.7321 GB, free: 5.062 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.6635, allocations: 12.73 kB / 0.7321 GB, free: 5.051 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.477e-05/0.6635, allocations: 24.31 kB / 0.7321 GB, free: 5.027 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006956/0.6642, allocations: 382.5 kB / 0.7325 GB, free: 4.621 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.6642, allocations: 0 / 0.7325 GB, free: 4.621 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.6643, allocations: 15.94 kB / 0.7325 GB, free: 4.605 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.079e-05/0.6644, allocations: 24.31 kB / 0.7325 GB, free: 4.582 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006032/0.665, allocations: 324.6 kB / 0.7328 GB, free: 4.266 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.6669, allocations: 1.713 MB / 0.7345 GB, free: 2.418 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007379/0.6677, allocations: 336.7 kB / 0.7348 GB, free: 2.074 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002698/0.668, allocations: 149.5 kB / 0.7349 GB, free: 1.922 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001496/0.6681, allocations: 97.08 kB / 0.735 GB, free: 1.809 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.6681, allocations: 42.5 kB / 0.7351 GB, free: 1.758 MB / 0.545 GB Notification: Performance of pre-optimization done (n=20): time 4.208e-06/0.6682, allocations: 4 kB / 0.7351 GB, free: 1.754 MB / 0.545 GB Notification: Performance of matching and sorting (n=21): time 0.001417/0.6696, allocations: 0.5897 MB / 0.7357 GB, free: 1.137 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.6697, allocations: 81.11 kB / 0.7357 GB, free: 1.039 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.6699, allocations: 203.9 kB / 0.7359 GB, free: 0.832 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.6699, allocations: 33.7 kB / 0.736 GB, free: 0.793 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.67, allocations: 159.9 kB / 0.7361 GB, free: 0.6328 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.482e-05/0.6701, allocations: 78.84 kB / 0.7362 GB, free: 0.5547 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.6702, allocations: 53.98 kB / 0.7362 GB, free: 0.4961 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.6703, allocations: 330.8 kB / 0.7366 GB, free: 168 kB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000287/0.6706, allocations: 141.8 kB / 0.7367 GB, free: 24 kB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003015/0.6709, allocations: 207.3 kB / 0.7369 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005663/0.6715, allocations: 372.7 kB / 0.7372 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.6715, allocations: 0 / 0.7372 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007544/0.6723, allocations: 429.9 kB / 0.7377 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.6723, allocations: 8 kB / 0.7377 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.6723, allocations: 0 / 0.7377 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002463/0.6726, allocations: 40.83 kB / 0.7377 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002953/0.6729, allocations: 71.88 kB / 0.7378 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001603/0.6745, allocations: 1.603 MB / 0.7393 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002341/0.6748, allocations: 35.88 kB / 0.7394 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.693e-05/0.6748, allocations: 16 kB / 0.7394 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003523/0.6751, allocations: 236 kB / 0.7396 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003052/0.6755, allocations: 207.6 kB / 0.7398 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000556/0.676, allocations: 354.1 kB / 0.7401 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.613e-06/0.676, allocations: 4 kB / 0.7402 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008039/0.6768, allocations: 401.9 kB / 0.7405 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.6769, allocations: 14.86 kB / 0.7405 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.6769, allocations: 8 kB / 0.7406 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001415/0.677, allocations: 44.81 kB / 0.7406 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002805/0.6773, allocations: 63.89 kB / 0.7407 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/0.679, allocations: 1.611 MB / 0.7422 GB, free: 9.875 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002013/0.6792, allocations: 27.91 kB / 0.7423 GB, free: 9.848 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.527e-05/0.6792, allocations: 16 kB / 0.7423 GB, free: 9.832 MB / 0.5606 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.0001778/0.6794, allocations: 196.3 kB / 0.7425 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.015e-05/0.6795, allocations: 27.59 kB / 0.7425 GB, free: 9.605 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007126/0.6802, allocations: 358.5 kB / 0.7428 GB, free: 9.25 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.6802, allocations: 0 / 0.7428 GB, free: 9.25 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.6802, allocations: 4 kB / 0.7428 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.6802, allocations: 0 / 0.7428 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001473/0.6817, allocations: 0.9598 MB / 0.7438 GB, free: 8.207 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.6817, allocations: 0 / 0.7438 GB, free: 8.207 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002335/0.682, allocations: 55.83 kB / 0.7438 GB, free: 8.152 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001184/0.6821, allocations: 40.83 kB / 0.7439 GB, free: 8.109 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.6821, allocations: 0 / 0.7439 GB, free: 8.109 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001273/0.6834, allocations: 1.52 MB / 0.7453 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.6834, allocations: 4.062 kB / 0.7454 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007211/0.6842, allocations: 0.5314 MB / 0.7459 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.6843, allocations: 124.8 kB / 0.746 GB, free: 5.734 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.863e-05/0.6843, allocations: 15.84 kB / 0.746 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.6846, allocations: 23.97 kB / 0.746 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.22e-05/0.6847, allocations: 23.91 kB / 0.7461 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.6847, allocations: 8 kB / 0.7461 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000143/0.6848, allocations: 154.8 kB / 0.7462 GB, free: 5.512 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.11e-07/0.6848, allocations: 4 kB / 0.7462 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005843/0.6854, allocations: 108 kB / 0.7463 GB, free: 5.402 MB / 0.5606 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.0002406/0.6857, allocations: 119.1 kB / 0.7464 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001362/0.687, allocations: 0.7518 MB / 0.7472 GB, free: 4.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.6871, allocations: 0 / 0.7472 GB, free: 4.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004074/0.6875, allocations: 278.7 kB / 0.7474 GB, free: 4.215 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004771/0.688, allocations: 31.92 kB / 0.7475 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/0.689, allocations: 0.5527 MB / 0.748 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.6894, allocations: 0.7677 MB / 0.7487 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002391/0.6896, allocations: 93.97 kB / 0.7488 GB, free: 2.699 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.3e-05/0.6897, allocations: 27.44 kB / 0.7489 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.6897, allocations: 0 / 0.7489 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of Templates: time 0.007668/0.6974, allocations: 3.275 MB / 0.7521 GB, free: 15.4 MB / 0.5762 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)