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/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-05,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-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.5098/0.5124, allocations: 80.82 MB / 0.5904 GB, free: 22.2 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.005128/0.5176, allocations: 2.871 MB / 0.5932 GB, free: 19.91 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002444/0.5201, allocations: 1.732 MB / 0.5949 GB, free: 18.17 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.5202, allocations: 7.938 kB / 0.5949 GB, free: 18.16 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008176/0.5211, allocations: 229.1 kB / 0.5951 GB, free: 17.94 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004224/0.5215, allocations: 195.1 kB / 0.5953 GB, free: 17.75 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004996/0.522, allocations: 225.2 kB / 0.5955 GB, free: 17.53 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003092/0.5223, allocations: 312.4 kB / 0.5958 GB, free: 17.23 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003737/0.5227, allocations: 184.6 kB / 0.596 GB, free: 17.06 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.5229, allocations: 119.6 kB / 0.5961 GB, free: 16.94 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00024/0.5231, allocations: 151.5 kB / 0.5963 GB, free: 16.79 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.539e-05/0.5232, allocations: 26.41 kB / 0.5963 GB, free: 16.77 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000343/0.5235, allocations: 255.4 kB / 0.5965 GB, free: 16.52 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.768e-05/0.5236, allocations: 83.8 kB / 0.5966 GB, free: 16.44 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.5237, allocations: 111.5 kB / 0.5967 GB, free: 16.33 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003941/0.5241, allocations: 410.7 kB / 0.5971 GB, free: 15.93 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.5242, allocations: 0 / 0.5971 GB, free: 15.93 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5242, allocations: 0 / 0.5971 GB, free: 15.93 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.665e-06/0.5242, allocations: 4 kB / 0.5971 GB, free: 15.92 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0007901/0.525, allocations: 0.534 MB / 0.5976 GB, free: 15.34 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.525, allocations: 12.03 kB / 0.5977 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007239/0.5257, allocations: 92.55 kB / 0.5977 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002884/0.526, allocations: 253 kB / 0.598 GB, free: 14.95 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.5261, allocations: 16.73 kB / 0.598 GB, free: 14.93 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.526e-05/0.5261, allocations: 20.31 kB / 0.598 GB, free: 14.91 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005347/0.5267, allocations: 378.5 kB / 0.5984 GB, free: 14.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.5267, allocations: 3.984 kB / 0.5984 GB, free: 14.51 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.156e-05/0.5267, allocations: 12 kB / 0.5984 GB, free: 14.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.795e-05/0.5268, allocations: 24.31 kB / 0.5984 GB, free: 14.48 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005021/0.5273, allocations: 324.6 kB / 0.5987 GB, free: 14.16 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.5286, allocations: 1.516 MB / 0.6002 GB, free: 12.56 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006658/0.5293, allocations: 329.1 kB / 0.6005 GB, free: 12.22 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.5296, allocations: 153.6 kB / 0.6007 GB, free: 12.06 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001576/0.5297, allocations: 85.11 kB / 0.6007 GB, free: 11.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.5298, allocations: 46.48 kB / 0.6008 GB, free: 11.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=20): time 1.793e-06/0.5298, allocations: 0 / 0.6008 GB, free: 11.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=21): time 0.001434/0.5312, allocations: 0.6019 MB / 0.6014 GB, free: 11.28 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/0.5313, allocations: 81.02 kB / 0.6015 GB, free: 11.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.5315, allocations: 199.8 kB / 0.6016 GB, free: 10.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.5315, allocations: 33.7 kB / 0.6017 GB, free: 10.94 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.992e-05/0.5316, allocations: 160.1 kB / 0.6018 GB, free: 10.78 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.02e-05/0.5317, allocations: 74.91 kB / 0.6019 GB, free: 10.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.108e-05/0.5318, allocations: 53.98 kB / 0.602 GB, free: 10.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.992e-05/0.5319, allocations: 330.8 kB / 0.6023 GB, free: 10.31 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.5321, allocations: 133.8 kB / 0.6024 GB, free: 10.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002541/0.5324, allocations: 218.6 kB / 0.6026 GB, free: 9.934 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004917/0.5329, allocations: 373 kB / 0.603 GB, free: 9.535 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.5329, allocations: 7.938 kB / 0.603 GB, free: 9.527 MB / 446.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006622/0.5336, allocations: 430 kB / 0.6034 GB, free: 9.098 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.5336, allocations: 4 kB / 0.6034 GB, free: 9.094 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.5336, allocations: 4 kB / 0.6034 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002771/0.5339, allocations: 40.81 kB / 0.6034 GB, free: 9.047 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002707/0.5342, allocations: 67.83 kB / 0.6035 GB, free: 8.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.5354, allocations: 1.619 MB / 0.6051 GB, free: 7.211 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000197/0.5356, allocations: 27.94 kB / 0.6051 GB, free: 7.184 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.167e-05/0.5357, allocations: 16 kB / 0.6051 GB, free: 7.168 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00026/0.5359, allocations: 236 kB / 0.6053 GB, free: 6.934 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002226/0.5362, allocations: 207.6 kB / 0.6055 GB, free: 6.691 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000414/0.5366, allocations: 354.8 kB / 0.6059 GB, free: 6.305 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.403e-06/0.5366, allocations: 4 kB / 0.6059 GB, free: 6.301 MB / 446.1 MB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006155/0.5372, allocations: 410.8 kB / 0.6063 GB, free: 5.891 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.268e-06/0.5372, allocations: 8 kB / 0.6063 GB, free: 5.883 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/0.5373, allocations: 4.375 kB / 0.6063 GB, free: 5.879 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001168/0.5374, allocations: 44.81 kB / 0.6063 GB, free: 5.832 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002384/0.5376, allocations: 67.89 kB / 0.6064 GB, free: 5.766 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009783/0.5386, allocations: 1.603 MB / 0.608 GB, free: 4.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001898/0.5388, allocations: 23.97 kB / 0.608 GB, free: 3.996 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.029e-05/0.5388, allocations: 16 kB / 0.608 GB, free: 3.98 MB / 446.1 MB 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.0001278/0.539, allocations: 199.6 kB / 0.6082 GB, free: 3.781 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.301e-05/0.539, allocations: 23.72 kB / 0.6082 GB, free: 3.758 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006166/0.5397, allocations: 359.3 kB / 0.6085 GB, free: 3.398 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.5397, allocations: 0 / 0.6085 GB, free: 3.398 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.5397, allocations: 11.94 kB / 0.6086 GB, free: 3.387 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.5397, allocations: 0 / 0.6086 GB, free: 3.387 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.5409, allocations: 0.9599 MB / 0.6095 GB, free: 2.348 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.5409, allocations: 8.062 kB / 0.6095 GB, free: 2.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002081/0.5411, allocations: 55.89 kB / 0.6096 GB, free: 2.285 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001049/0.5413, allocations: 36.77 kB / 0.6096 GB, free: 2.246 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.5413, allocations: 8 kB / 0.6096 GB, free: 2.238 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008642/0.5422, allocations: 1.504 MB / 0.6111 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.5422, allocations: 4 kB / 0.6111 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005791/0.5427, allocations: 0.5437 MB / 0.6116 GB, free: 12 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/0.5429, allocations: 120.8 kB / 0.6117 GB, free: 15.88 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.995e-05/0.543, allocations: 19.83 kB / 0.6117 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002177/0.5432, allocations: 15.97 kB / 0.6118 GB, free: 15.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.666e-05/0.5433, allocations: 23.92 kB / 0.6118 GB, free: 15.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.5433, allocations: 8 kB / 0.6118 GB, free: 15.81 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001602/0.5435, allocations: 159 kB / 0.6119 GB, free: 15.65 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5435, allocations: 0 / 0.6119 GB, free: 15.65 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0005796/0.5441, allocations: 104 kB / 0.612 GB, free: 15.55 MB / 462.1 MB 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.000194/0.5443, allocations: 107.2 kB / 0.6121 GB, free: 15.44 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.5456, allocations: 0.7604 MB / 0.6129 GB, free: 14.66 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.5456, allocations: 1.062 kB / 0.6129 GB, free: 14.66 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004122/0.5461, allocations: 274.8 kB / 0.6131 GB, free: 14.38 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004947/0.5466, allocations: 35.92 kB / 0.6132 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.5476, allocations: 0.571 MB / 0.6137 GB, free: 13.72 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000422/0.548, allocations: 0.7717 MB / 0.6145 GB, free: 12.92 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002394/0.5483, allocations: 89.86 kB / 0.6146 GB, free: 12.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.379e-05/0.5483, allocations: 23.44 kB / 0.6146 GB, free: 12.81 MB / 462.1 MB Notification: Performance of SimCode: time 2.3e-07/0.5484, allocations: 3.938 kB / 0.6146 GB, free: 12.81 MB / 462.1 MB Notification: Performance of Templates: time 0.008145/0.5565, allocations: 3.245 MB / 0.6178 GB, free: 9.582 MB / 462.1 MB 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)