Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.161/2.161, allocations: 391.2 MB / 407 MB, free: 10.84 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001273/0.001272, allocations: 194.3 kB / 499.1 MB, free: 4.629 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.617/1.617, allocations: 222.9 MB / 0.7948 GB, free: 15.84 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 98.89 kB / 0.9329 GB, free: 7.074 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.001081, allocations: 48.66 kB / 1.081 GB, free: 218.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2867, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004278/0.291, allocations: 2.934 MB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.002321/0.2934, allocations: 1.648 MB / 1.223 GB, free: 112.6 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001951/0.2936, allocations: 4 kB / 1.223 GB, free: 112.6 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0006954/0.2943, allocations: 223.2 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0003817/0.2947, allocations: 167.3 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005031/0.2952, allocations: 211.3 kB / 1.223 GB, free: 112 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0002981/0.2955, allocations: 430.8 kB / 1.224 GB, free: 111.6 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003182/0.2959, allocations: 174.2 kB / 1.224 GB, free: 111.4 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.296, allocations: 111.6 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002402/0.2963, allocations: 155.4 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 2.906e-05/0.2963, allocations: 12 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003594/0.2967, allocations: 307.4 kB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 7.601e-05/0.2968, allocations: 83.78 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 8.91e-05/0.2968, allocations: 111.3 kB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.000368/0.2972, allocations: 424.8 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2972, allocations: 3.984 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of FrontEnd: time 7.52e-07/0.2972, allocations: 0 / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.04e-06/0.2973, allocations: 0 / 1.225 GB, free: 110.2 MB / 0.823 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.0007898/0.298, allocations: 0.538 MB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.2981, allocations: 15.98 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006048/0.2987, allocations: 88.56 kB / 1.226 GB, free: 109.6 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.299, allocations: 265.5 kB / 1.226 GB, free: 109.3 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.299, allocations: 20.73 kB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.267e-05/0.2991, allocations: 16.38 kB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005181/0.2996, allocations: 386.3 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.2996, allocations: 0 / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.2996, allocations: 8 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.603e-05/0.2997, allocations: 24.3 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004909/0.3002, allocations: 321.3 kB / 1.227 GB, free: 108.5 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.3015, allocations: 1.724 MB / 1.228 GB, free: 106.6 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005819/0.3021, allocations: 329.1 kB / 1.228 GB, free: 106.3 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002192/0.3024, allocations: 153.6 kB / 1.229 GB, free: 106.1 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000128/0.3025, allocations: 89.09 kB / 1.229 GB, free: 106 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.801e-05/0.3025, allocations: 42.55 kB / 1.229 GB, free: 106 MB / 0.823 GB Notification: Performance of pre-optimization done (n=20): time 1.393e-06/0.3025, allocations: 0 / 1.229 GB, free: 106 MB / 0.823 GB Notification: Performance of matching and sorting (n=21): time 0.001173/0.3037, allocations: 0.5889 MB / 1.229 GB, free: 105.3 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.382e-05/0.3038, allocations: 93.22 kB / 1.229 GB, free: 105.2 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.3039, allocations: 205.7 kB / 1.23 GB, free: 105 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.3039, allocations: 33.64 kB / 1.23 GB, free: 105 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 6.805e-05/0.304, allocations: 159.9 kB / 1.23 GB, free: 104.8 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 3.912e-05/0.304, allocations: 71 kB / 1.23 GB, free: 104.8 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.019e-05/0.3041, allocations: 61.88 kB / 1.23 GB, free: 104.7 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.318e-05/0.3042, allocations: 330.8 kB / 1.23 GB, free: 104.4 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/0.3044, allocations: 137.8 kB / 1.23 GB, free: 104.2 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000248/0.3047, allocations: 211.3 kB / 1.231 GB, free: 104 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004627/0.3052, allocations: 370.9 kB / 1.231 GB, free: 103.6 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.3052, allocations: 0 / 1.231 GB, free: 103.6 MB / 0.823 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006704/0.3059, allocations: 426.9 kB / 1.231 GB, free: 103.2 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3059, allocations: 4 kB / 1.231 GB, free: 103.1 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.3059, allocations: 4 kB / 1.231 GB, free: 103.1 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000252/0.3062, allocations: 36.83 kB / 1.231 GB, free: 103.1 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002736/0.3064, allocations: 71.88 kB / 1.231 GB, free: 103 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.3076, allocations: 1.513 MB / 1.233 GB, free: 101.4 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002048/0.3079, allocations: 23.97 kB / 1.233 GB, free: 101.4 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.473e-05/0.3079, allocations: 16.06 kB / 1.233 GB, free: 101.3 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000254/0.3081, allocations: 232.6 kB / 1.233 GB, free: 101.1 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002194/0.3084, allocations: 211.8 kB / 1.233 GB, free: 100.9 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004202/0.3088, allocations: 351.8 kB / 1.234 GB, free: 100.5 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.695e-06/0.3088, allocations: 0 / 1.234 GB, free: 100.5 MB / 0.823 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006402/0.3095, allocations: 410.9 kB / 1.234 GB, free: 100.1 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.3095, allocations: 9.25 kB / 1.234 GB, free: 100.1 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.227e-06/0.3095, allocations: 0 / 1.234 GB, free: 100.1 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001311/0.3096, allocations: 49.19 kB / 1.234 GB, free: 100 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002374/0.3099, allocations: 67.89 kB / 1.234 GB, free: 99.95 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001009/0.3109, allocations: 1.493 MB / 1.236 GB, free: 98.32 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001832/0.3111, allocations: 27.88 kB / 1.236 GB, free: 98.29 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.107e-05/0.3111, allocations: 12 kB / 1.236 GB, free: 98.28 MB / 0.823 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.0001107/0.3113, allocations: 200.1 kB / 1.236 GB, free: 98.08 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.774e-05/0.3113, allocations: 19.81 kB / 1.236 GB, free: 98.06 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005922/0.3119, allocations: 356.9 kB / 1.236 GB, free: 97.7 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.3119, allocations: 7.938 kB / 1.236 GB, free: 97.7 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.3119, allocations: 0 / 1.236 GB, free: 97.7 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.312, allocations: 3.984 kB / 1.236 GB, free: 97.69 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.3132, allocations: 0.9599 MB / 1.237 GB, free: 96.65 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3132, allocations: 4 kB / 1.237 GB, free: 96.65 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002032/0.3134, allocations: 52.11 kB / 1.237 GB, free: 96.6 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001095/0.3135, allocations: 44.77 kB / 1.237 GB, free: 96.55 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.3135, allocations: 8.062 kB / 1.237 GB, free: 96.54 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007806/0.3143, allocations: 1.413 MB / 1.239 GB, free: 94.99 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3143, allocations: 0 / 1.239 GB, free: 94.99 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009582/0.3153, allocations: 1.274 MB / 1.24 GB, free: 93.64 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.3154, allocations: 124.7 kB / 1.24 GB, free: 93.5 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.859e-05/0.3155, allocations: 12 kB / 1.24 GB, free: 93.49 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002202/0.3157, allocations: 19.97 kB / 1.24 GB, free: 93.47 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.212e-05/0.3158, allocations: 19.92 kB / 1.24 GB, free: 93.45 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.3158, allocations: 8 kB / 1.24 GB, free: 93.44 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0001162/0.3159, allocations: 159.2 kB / 1.24 GB, free: 93.29 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3159, allocations: 0 / 1.24 GB, free: 93.29 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0007402/0.3167, allocations: 104 kB / 1.24 GB, free: 93.18 MB / 0.823 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.0001559/0.3168, allocations: 109.1 kB / 1.241 GB, free: 93.07 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001127/0.318, allocations: 0.7408 MB / 1.241 GB, free: 92.3 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.318, allocations: 0 / 1.241 GB, free: 92.3 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.00033/0.3183, allocations: 267.4 kB / 1.241 GB, free: 92.03 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000446/0.3188, allocations: 42.59 kB / 1.242 GB, free: 91.99 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009556/0.3197, allocations: 0.8241 MB / 1.242 GB, free: 91.1 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000216/0.32, allocations: 0.7795 MB / 1.243 GB, free: 90.29 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0002258/0.3202, allocations: 85.86 kB / 1.243 GB, free: 90.21 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.848e-05/0.3203, allocations: 23.42 kB / 1.243 GB, free: 90.19 MB / 0.823 GB Notification: Performance of SimCode: time 4.31e-07/0.3203, allocations: 0 / 1.243 GB, free: 90.19 MB / 0.823 GB Notification: Performance of Templates: time 0.005991/0.3263, allocations: 3.235 MB / 1.246 GB, free: 86.96 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)