Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001146/0.001146, allocations: 105.4 kB / 15.7 MB, free: 24 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.001207/0.001207, allocations: 196 kB / 16.64 MB, free: 6.453 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.462/1.462, allocations: 205.1 MB / 222.5 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.791/1.791, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.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.001618/0.001619, allocations: 68.39 kB / 0.6723 GB, free: 25.94 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2569, allocations: 114.6 MB / 0.7841 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.005039/0.262, allocations: 2.895 MB / 0.787 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002751/0.2648, allocations: 1.684 MB / 0.7886 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.2649, allocations: 4 kB / 0.7886 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0008296/0.2658, allocations: 233.6 kB / 0.7888 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003938/0.2662, allocations: 183.2 kB / 0.789 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005108/0.2667, allocations: 231.3 kB / 0.7892 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003405/0.267, allocations: 315 kB / 0.7895 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003458/0.2674, allocations: 177 kB / 0.7897 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000172/0.2676, allocations: 123.6 kB / 0.7898 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003026/0.2679, allocations: 151.4 kB / 0.7899 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.455e-05/0.2679, allocations: 24 kB / 0.79 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003821/0.2683, allocations: 259.5 kB / 0.7902 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.273e-05/0.2684, allocations: 83.78 kB / 0.7903 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.2686, allocations: 115.4 kB / 0.7904 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004772/0.269, allocations: 410.7 kB / 0.7908 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2691, allocations: 0 / 0.7908 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2691, allocations: 0 / 0.7908 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.104e-06/0.2691, allocations: 0 / 0.7908 GB, free: 5.871 MB / 0.6075 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.0009592/0.27, allocations: 0.5379 MB / 0.7913 GB, free: 5.281 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.2701, allocations: 12.03 kB / 0.7913 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007216/0.2708, allocations: 92.55 kB / 0.7914 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003336/0.2712, allocations: 260.6 kB / 0.7917 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.2712, allocations: 16.69 kB / 0.7917 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.064e-05/0.2712, allocations: 20.28 kB / 0.7917 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006383/0.2719, allocations: 386.2 kB / 0.7921 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.2719, allocations: 4 kB / 0.7921 GB, free: 4.438 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.498e-05/0.272, allocations: 11.98 kB / 0.7921 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.564e-05/0.272, allocations: 28.25 kB / 0.7921 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006011/0.2726, allocations: 324.7 kB / 0.7924 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001863/0.2745, allocations: 1.717 MB / 0.7941 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00072/0.2752, allocations: 333 kB / 0.7944 GB, free: 1.883 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.2755, allocations: 145.6 kB / 0.7946 GB, free: 1.734 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000148/0.2757, allocations: 89.09 kB / 0.7946 GB, free: 1.629 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.2757, allocations: 46.5 kB / 0.7947 GB, free: 1.574 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=20): time 1.503e-06/0.2757, allocations: 0 / 0.7947 GB, free: 1.574 MB / 0.6075 GB Notification: Performance of matching and sorting (n=21): time 0.001455/0.2772, allocations: 0.5828 MB / 0.7953 GB, free: 0.9648 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/0.2772, allocations: 89.22 kB / 0.7953 GB, free: 0.8594 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001926/0.2774, allocations: 211.7 kB / 0.7955 GB, free: 0.6445 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.2775, allocations: 29.7 kB / 0.7956 GB, free: 0.6094 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.2776, allocations: 159.8 kB / 0.7957 GB, free: 460 kB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.827e-05/0.2776, allocations: 78.98 kB / 0.7958 GB, free: 380 kB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.2778, allocations: 53.89 kB / 0.7959 GB, free: 320 kB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001651/0.2779, allocations: 334.8 kB / 0.7962 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002953/0.2782, allocations: 137.9 kB / 0.7963 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003157/0.2786, allocations: 207.3 kB / 0.7965 GB, free: 15.6 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005745/0.2791, allocations: 373.9 kB / 0.7969 GB, free: 15.2 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2792, allocations: 4 kB / 0.7969 GB, free: 15.2 MB / 0.6231 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008026/0.28, allocations: 425.3 kB / 0.7973 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.28, allocations: 8 kB / 0.7973 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.28, allocations: 0 / 0.7973 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002541/0.2803, allocations: 44.83 kB / 0.7973 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002965/0.2806, allocations: 67.88 kB / 0.7974 GB, free: 14.65 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001654/0.2822, allocations: 1.611 MB / 0.799 GB, free: 12.89 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.2825, allocations: 31.97 kB / 0.799 GB, free: 12.86 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.86e-05/0.2825, allocations: 16 kB / 0.799 GB, free: 12.84 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003225/0.2828, allocations: 239.2 kB / 0.7992 GB, free: 12.61 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002837/0.2831, allocations: 207.6 kB / 0.7994 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005199/0.2837, allocations: 349.2 kB / 0.7998 GB, free: 11.98 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.733e-06/0.2837, allocations: 4 kB / 0.7998 GB, free: 11.98 MB / 0.6231 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007653/0.2845, allocations: 408.6 kB / 0.8002 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.2845, allocations: 4.375 kB / 0.8002 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.2845, allocations: 8 kB / 0.8002 GB, free: 11.56 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001437/0.2846, allocations: 44.81 kB / 0.8002 GB, free: 11.52 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.2849, allocations: 63.89 kB / 0.8003 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001499/0.2864, allocations: 1.615 MB / 0.8019 GB, free: 9.691 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.2866, allocations: 27.88 kB / 0.8019 GB, free: 9.664 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.298e-05/0.2867, allocations: 15.94 kB / 0.8019 GB, free: 9.648 MB / 0.6231 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.0001846/0.2869, allocations: 200.2 kB / 0.8021 GB, free: 9.445 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.134e-05/0.2869, allocations: 19.75 kB / 0.8021 GB, free: 9.426 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006967/0.2877, allocations: 363.9 kB / 0.8024 GB, free: 9.066 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.2877, allocations: 0 / 0.8024 GB, free: 9.066 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2877, allocations: 4 kB / 0.8025 GB, free: 9.062 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.2877, allocations: 3.984 kB / 0.8025 GB, free: 9.059 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001499/0.2892, allocations: 0.9562 MB / 0.8034 GB, free: 8.023 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.2892, allocations: 4.062 kB / 0.8034 GB, free: 8.02 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002285/0.2894, allocations: 55.83 kB / 0.8034 GB, free: 7.965 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001189/0.2896, allocations: 36.83 kB / 0.8035 GB, free: 7.926 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.2896, allocations: 8 kB / 0.8035 GB, free: 7.918 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/0.2908, allocations: 1.508 MB / 0.805 GB, free: 6.266 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2908, allocations: 144 / 0.805 GB, free: 6.266 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007164/0.2915, allocations: 0.5392 MB / 0.8055 GB, free: 5.688 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.2917, allocations: 128.8 kB / 0.8056 GB, free: 5.543 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.2917, allocations: 7.938 kB / 0.8056 GB, free: 5.535 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002437/0.292, allocations: 27.97 kB / 0.8056 GB, free: 5.508 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.311e-05/0.2921, allocations: 19.92 kB / 0.8057 GB, free: 5.488 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.052e-05/0.2921, allocations: 11.98 kB / 0.8057 GB, free: 5.477 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001505/0.2922, allocations: 155.7 kB / 0.8058 GB, free: 5.324 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2922, allocations: 0 / 0.8058 GB, free: 5.324 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006861/0.2929, allocations: 108 kB / 0.8059 GB, free: 5.219 MB / 0.6231 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.000205/0.2931, allocations: 111.2 kB / 0.806 GB, free: 5.102 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001385/0.2945, allocations: 0.7354 MB / 0.8068 GB, free: 4.34 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.2946, allocations: 0 / 0.8068 GB, free: 4.34 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004092/0.295, allocations: 269.9 kB / 0.807 GB, free: 4.066 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004837/0.2955, allocations: 40.22 kB / 0.807 GB, free: 4.027 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009623/0.2964, allocations: 0.5553 MB / 0.8076 GB, free: 3.426 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.2968, allocations: 0.7716 MB / 0.8083 GB, free: 2.629 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002229/0.297, allocations: 89.86 kB / 0.8084 GB, free: 2.539 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.995e-05/0.2971, allocations: 19.44 kB / 0.8084 GB, free: 2.52 MB / 0.6231 GB Notification: Performance of SimCode: time 2.3e-07/0.2971, allocations: 0 / 0.8084 GB, free: 2.52 MB / 0.6231 GB Notification: Performance of Templates: time 0.007274/0.3044, allocations: 3.289 MB / 0.8117 GB, free: 15.24 MB / 0.6387 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)