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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.582/1.582, allocations: 252 MB / 267.3 MB, free: 10.86 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001033/0.001033, allocations: 168 kB / 327 MB, free: 2.102 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.954/1.954, allocations: 205.4 MB / 0.578 GB, free: 20.07 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008926/0.000893, allocations: 91.61 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003618/0.0003619, allocations: 11.3 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2501, allocations: 106.3 MB / 0.9009 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003094/0.2533, allocations: 2.586 MB / 0.9034 GB, free: 60.81 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0025/0.2558, allocations: 1.672 MB / 0.9051 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001952/0.256, allocations: 0 / 0.9051 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001999/0.2563, allocations: 39.7 kB / 0.9051 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000608/0.2569, allocations: 167.3 kB / 0.9053 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005918/0.2575, allocations: 205.5 kB / 0.9055 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0004802/0.258, allocations: 430.8 kB / 0.9059 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007168/0.2587, allocations: 386.9 kB / 0.9062 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002233/0.2589, allocations: 115.5 kB / 0.9064 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002937/0.2592, allocations: 131.5 kB / 0.9065 GB, free: 57.67 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.23e-05/0.2593, allocations: 12 kB / 0.9065 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00053/0.2598, allocations: 307.3 kB / 0.9068 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 9.432e-05/0.2599, allocations: 79.72 kB / 0.9069 GB, free: 57.28 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.26, allocations: 125.1 kB / 0.907 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0005214/0.2606, allocations: 414.9 kB / 0.9074 GB, free: 56.74 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.2606, allocations: 0 / 0.9074 GB, free: 56.74 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.154e-06/0.2606, allocations: 0 / 0.9074 GB, free: 56.74 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.664e-06/0.2606, allocations: 0 / 0.9074 GB, free: 56.74 MB / 0.6042 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.0007816/0.2614, allocations: 0.5145 MB / 0.9079 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.2614, allocations: 8.031 kB / 0.9079 GB, free: 56.17 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.038e-05/0.2615, allocations: 58.72 kB / 0.9079 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007126/0.2622, allocations: 88.56 kB / 0.908 GB, free: 56.02 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003009/0.2626, allocations: 255.9 kB / 0.9083 GB, free: 55.73 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.2626, allocations: 16.73 kB / 0.9083 GB, free: 55.71 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.975e-05/0.2626, allocations: 20.38 kB / 0.9083 GB, free: 55.69 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005392/0.2632, allocations: 398.4 kB / 0.9087 GB, free: 55.27 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.2632, allocations: 3.938 kB / 0.9087 GB, free: 55.27 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.2632, allocations: 4 kB / 0.9087 GB, free: 55.26 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.036e-05/0.2633, allocations: 28.31 kB / 0.9087 GB, free: 55.23 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005522/0.2638, allocations: 336.6 kB / 0.909 GB, free: 54.9 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.2654, allocations: 1.724 MB / 0.9107 GB, free: 53.04 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000656/0.2661, allocations: 333 kB / 0.911 GB, free: 52.7 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002378/0.2663, allocations: 157.6 kB / 0.9112 GB, free: 52.54 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001384/0.2665, allocations: 93.08 kB / 0.9113 GB, free: 52.43 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.2665, allocations: 34.56 kB / 0.9113 GB, free: 52.39 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=20): time 1.653e-06/0.2665, allocations: 0 / 0.9113 GB, free: 52.39 MB / 0.6042 GB Notification: Performance of matching and sorting (n=21): time 0.001259/0.2678, allocations: 0.6076 MB / 0.9119 GB, free: 51.75 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.2678, allocations: 85.11 kB / 0.912 GB, free: 51.65 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/0.268, allocations: 208.3 kB / 0.9122 GB, free: 51.44 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.268, allocations: 29.7 kB / 0.9122 GB, free: 51.4 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.778e-05/0.2681, allocations: 159.8 kB / 0.9124 GB, free: 51.24 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.202e-05/0.2681, allocations: 74.94 kB / 0.9124 GB, free: 51.17 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.559e-05/0.2682, allocations: 8 kB / 0.9124 GB, free: 51.16 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.69e-05/0.2682, allocations: 326.8 kB / 0.9128 GB, free: 50.83 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/0.2685, allocations: 136.5 kB / 0.9129 GB, free: 50.7 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002388/0.2687, allocations: 215.3 kB / 0.9131 GB, free: 50.45 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004735/0.2692, allocations: 378.7 kB / 0.9135 GB, free: 50.05 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2692, allocations: 0 / 0.9135 GB, free: 50.05 MB / 0.6042 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006971/0.2699, allocations: 441.1 kB / 0.9139 GB, free: 49.61 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.726e-05/0.27, allocations: 170.6 kB / 0.914 GB, free: 49.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.27, allocations: 4 kB / 0.914 GB, free: 49.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002275/0.2702, allocations: 40.83 kB / 0.9141 GB, free: 49.36 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002833/0.2705, allocations: 71.88 kB / 0.9141 GB, free: 49.29 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001065/0.2716, allocations: 1.505 MB / 0.9156 GB, free: 47.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000225/0.2718, allocations: 35.84 kB / 0.9157 GB, free: 47.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.511e-05/0.2719, allocations: 12 kB / 0.9157 GB, free: 47.59 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.863e-06/0.2719, allocations: 4 kB / 0.9157 GB, free: 47.59 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006143/0.2725, allocations: 372.3 kB / 0.916 GB, free: 47.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.2725, allocations: 4 kB / 0.916 GB, free: 47.21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001185/0.2727, allocations: 41.17 kB / 0.9161 GB, free: 47.17 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002474/0.2729, allocations: 79.81 kB / 0.9161 GB, free: 47.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008676/0.2738, allocations: 1.473 MB / 0.9176 GB, free: 45.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002002/0.274, allocations: 35.81 kB / 0.9176 GB, free: 45.44 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/0.274, allocations: 12 kB / 0.9176 GB, free: 45.43 MB / 0.6042 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.0001498/0.2742, allocations: 237.6 kB / 0.9179 GB, free: 45.19 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.701e-05/0.2743, allocations: 15.95 kB / 0.9179 GB, free: 45.17 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005968/0.2749, allocations: 374.6 kB / 0.9182 GB, free: 44.8 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.2749, allocations: 4 kB / 0.9182 GB, free: 44.8 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2749, allocations: 4 kB / 0.9182 GB, free: 44.8 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.2749, allocations: 3.938 kB / 0.9182 GB, free: 44.79 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001222/0.2761, allocations: 0.9659 MB / 0.9192 GB, free: 43.75 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.2761, allocations: 7.938 kB / 0.9192 GB, free: 43.74 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002172/0.2764, allocations: 51.89 kB / 0.9192 GB, free: 43.69 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001161/0.2765, allocations: 45.05 kB / 0.9193 GB, free: 43.64 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.2765, allocations: 4 kB / 0.9193 GB, free: 43.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007556/0.2773, allocations: 1.406 MB / 0.9207 GB, free: 42.11 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.2773, allocations: 11.94 kB / 0.9207 GB, free: 42.09 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006591/0.278, allocations: 0.5452 MB / 0.9212 GB, free: 41.51 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.2781, allocations: 132.7 kB / 0.9213 GB, free: 41.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.84e-05/0.2781, allocations: 0 / 0.9213 GB, free: 41.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.2784, allocations: 31.97 kB / 0.9214 GB, free: 41.33 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.642e-05/0.2785, allocations: 15.98 kB / 0.9214 GB, free: 41.32 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.2785, allocations: 8 kB / 0.9214 GB, free: 41.31 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001172/0.2786, allocations: 162.8 kB / 0.9215 GB, free: 41.15 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.6e-07/0.2786, allocations: 0 / 0.9215 GB, free: 41.15 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005782/0.2792, allocations: 104 kB / 0.9216 GB, free: 41.05 MB / 0.6042 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.0008253/0.28, allocations: 1.099 MB / 0.9227 GB, free: 39.9 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001137/0.2812, allocations: 0.7512 MB / 0.9234 GB, free: 39.12 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.2812, allocations: 4 kB / 0.9234 GB, free: 39.12 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003365/0.2815, allocations: 267.2 kB / 0.9237 GB, free: 38.85 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005008/0.2821, allocations: 45.45 kB / 0.9237 GB, free: 38.8 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/0.2853, allocations: 3.117 MB / 0.9268 GB, free: 35.49 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002236/0.2855, allocations: 0.7678 MB / 0.9275 GB, free: 34.7 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0002486/0.2858, allocations: 89.86 kB / 0.9276 GB, free: 34.61 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/0.2859, allocations: 71.41 kB / 0.9277 GB, free: 34.54 MB / 0.6042 GB Notification: Performance of SimCode: time 1.042e-06/0.2859, allocations: 0 / 0.9277 GB, free: 34.54 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02055/0.3065, allocations: 5.19 MB / 0.9328 GB, free: 29.54 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002442/0.3068, allocations: 236.8 kB / 0.933 GB, free: 29.29 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.899/2.206, allocations: 1.875 kB / 0.933 GB, free: 29.29 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)