Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002397/0.002401, allocations: 356.2 kB / 16.57 MB, free: 5.59 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.09/3.09, allocations: 388.9 MB / 406.2 MB, free: 6.906 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003296/0.003296, allocations: 224.7 kB / 451.6 MB, free: 0.5977 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.6221/0.6221, allocations: 76.03 MB / 0.5594 GB, free: 14.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004838/0.000484, allocations: 8 kB / 0.6216 GB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2618, allocations: 53.22 MB / 0.6736 GB, free: 62.64 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.008807/0.2706, allocations: 9.303 MB / 0.6827 GB, free: 53.31 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004506/0.2752, allocations: 3.391 MB / 0.686 GB, free: 49.92 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000598/0.2758, allocations: 63.62 kB / 0.6861 GB, free: 49.86 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006201/0.2764, allocations: 266.1 kB / 0.6863 GB, free: 49.6 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001527/0.278, allocations: 0.7654 MB / 0.6871 GB, free: 48.83 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009081/0.2789, allocations: 403.3 kB / 0.6874 GB, free: 48.43 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001599/0.2805, allocations: 1.975 MB / 0.6894 GB, free: 46.45 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001114/0.2816, allocations: 0.8678 MB / 0.6902 GB, free: 45.54 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005863/0.2822, allocations: 0.556 MB / 0.6908 GB, free: 44.98 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000849/0.2831, allocations: 0.72 MB / 0.6915 GB, free: 44.26 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001273/0.2833, allocations: 52 kB / 0.6915 GB, free: 44.21 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000481/0.2837, allocations: 283.5 kB / 0.6918 GB, free: 43.93 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003317/0.2841, allocations: 398.8 kB / 0.6922 GB, free: 43.54 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002174/0.2843, allocations: 269 kB / 0.6924 GB, free: 43.27 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001244/0.2856, allocations: 1.496 MB / 0.6939 GB, free: 41.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.765e-06/0.2856, allocations: 4 kB / 0.6939 GB, free: 41.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2856, allocations: 0 / 0.6939 GB, free: 41.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.2856, allocations: 0 / 0.6939 GB, free: 41.77 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.002394/0.288, allocations: 1.378 MB / 0.6952 GB, free: 40.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.2881, allocations: 12.03 kB / 0.6953 GB, free: 40.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008318/0.2889, allocations: 182.2 kB / 0.6954 GB, free: 40.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001594/0.2905, allocations: 0.8634 MB / 0.6963 GB, free: 39.24 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.909e-05/0.2906, allocations: 77.98 kB / 0.6963 GB, free: 39.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003004/0.2909, allocations: 127.8 kB / 0.6965 GB, free: 39.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002109/0.2931, allocations: 1.311 MB / 0.6977 GB, free: 37.67 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.875e-05/0.2931, allocations: 4 kB / 0.6977 GB, free: 37.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.2933, allocations: 40 kB / 0.6978 GB, free: 37.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001115/0.2934, allocations: 65.97 kB / 0.6978 GB, free: 37.56 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002082/0.2955, allocations: 1.066 MB / 0.6989 GB, free: 36.49 MB / 346.7 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.000124777475384046 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0067/0.3022, allocations: 4.934 MB / 0.7037 GB, free: 31.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001253/0.3035, allocations: 0.7522 MB / 0.7044 GB, free: 30.53 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005995/0.3041, allocations: 342.8 kB / 0.7048 GB, free: 30.19 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.698e-05/0.3041, allocations: 12.55 kB / 0.7048 GB, free: 30.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.3042, allocations: 39.12 kB / 0.7048 GB, free: 30.13 MB / 346.7 MB Notification: Performance of pre-optimization done (n=63): time 4.826e-06/0.3042, allocations: 7.938 kB / 0.7048 GB, free: 30.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.006038/0.3102, allocations: 3.084 MB / 0.7078 GB, free: 26.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.3103, allocations: 141.1 kB / 0.708 GB, free: 26.74 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009199/0.3112, allocations: 0.7118 MB / 0.7087 GB, free: 26.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.097e-05/0.3113, allocations: 37.7 kB / 0.7087 GB, free: 25.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003114/0.3116, allocations: 0.5495 MB / 0.7092 GB, free: 25.42 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.3118, allocations: 256.3 kB / 0.7095 GB, free: 25.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.004e-05/0.3119, allocations: 20 kB / 0.7095 GB, free: 25.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.237e-05/0.3119, allocations: 337.9 kB / 0.7098 GB, free: 24.81 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005704/0.3125, allocations: 289.9 kB / 0.7101 GB, free: 24.53 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007114/0.3133, allocations: 0.5287 MB / 0.7106 GB, free: 23.89 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007146/0.314, allocations: 395 kB / 0.711 GB, free: 23.51 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.314, allocations: 3.938 kB / 0.711 GB, free: 23.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003074/0.3171, allocations: 1.344 MB / 0.7123 GB, free: 22.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001204/0.3172, allocations: 312.2 kB / 0.7126 GB, free: 21.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.3173, allocations: 8 kB / 0.7126 GB, free: 21.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00173/0.319, allocations: 443.6 kB / 0.713 GB, free: 21.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007317/0.3197, allocations: 163.7 kB / 0.7132 GB, free: 21.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008449/0.3282, allocations: 4.928 MB / 0.718 GB, free: 16.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006628/0.3289, allocations: 43.88 kB / 0.718 GB, free: 16.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.29e-05/0.329, allocations: 36 kB / 0.7181 GB, free: 16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.479e-06/0.329, allocations: 4 kB / 0.7181 GB, free: 16 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002569/0.3316, allocations: 1.128 MB / 0.7192 GB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.3316, allocations: 11.98 kB / 0.7192 GB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00146/0.3331, allocations: 392.7 kB / 0.7196 GB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007202/0.3338, allocations: 159.8 kB / 0.7197 GB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007323/0.3412, allocations: 4.631 MB / 0.7243 GB, free: 9.543 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000591/0.3418, allocations: 35.98 kB / 0.7243 GB, free: 9.508 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.858e-05/0.3419, allocations: 35.98 kB / 0.7243 GB, free: 9.473 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {7 25} Notification: Performance of prepare postOptimizeDAE: time 0.000532/0.3424, allocations: 438.2 kB / 0.7247 GB, free: 9.039 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00017/0.3426, allocations: 86.88 kB / 0.7248 GB, free: 8.953 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001511/0.3441, allocations: 0.883 MB / 0.7257 GB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.984e-06/0.3441, allocations: 8 kB / 0.7257 GB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.3442, allocations: 7.984 kB / 0.7257 GB, free: 8.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.3442, allocations: 4 kB / 0.7257 GB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00313/0.3473, allocations: 1.85 MB / 0.7275 GB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.001e-06/0.3473, allocations: 0 / 0.7275 GB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009682/0.3483, allocations: 171.8 kB / 0.7277 GB, free: 5.941 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.446e-06/0.3483, allocations: 4 kB / 0.7277 GB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.912e-05/0.3484, allocations: 16 kB / 0.7277 GB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.376e-06/0.3484, allocations: 4 kB / 0.7277 GB, free: 5.918 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.029e-06/0.3484, allocations: 4.031 kB / 0.7277 GB, free: 5.914 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/0.3504, allocations: 1.278 MB / 0.7289 GB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003528/0.3508, allocations: 223.8 kB / 0.7292 GB, free: 4.375 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/0.3509, allocations: 23.97 kB / 0.7292 GB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005554/0.3515, allocations: 27.98 kB / 0.7292 GB, free: 4.324 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.987e-05/0.3516, allocations: 40.59 kB / 0.7292 GB, free: 4.285 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.043e-05/0.3517, allocations: 24 kB / 0.7293 GB, free: 4.262 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006569/0.3523, allocations: 499 kB / 0.7297 GB, free: 3.777 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.96e-07/0.3524, allocations: 0 / 0.7297 GB, free: 3.777 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001587/0.354, allocations: 460 kB / 0.7302 GB, free: 3.328 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.generator.phi_el,PMgen.generator.w_el,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002631/0.3542, allocations: 141.4 kB / 0.7303 GB, free: 3.184 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003516/0.3578, allocations: 1.893 MB / 0.7322 GB, free: 1.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.505e-06/0.3578, allocations: 0 / 0.7322 GB, free: 1.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006273/0.3584, allocations: 359.9 kB / 0.7325 GB, free: 0.9141 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001296/0.3597, allocations: 225.3 kB / 0.7327 GB, free: 0.7031 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004825/0.3646, allocations: 3.004 MB / 0.7357 GB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001208/0.3658, allocations: 1.217 MB / 0.7368 GB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001076/0.3669, allocations: 239.1 kB / 0.7371 GB, free: 12.17 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002663/0.3672, allocations: 75.36 kB / 0.7371 GB, free: 12.09 MB / 362.7 MB Notification: Performance of SimCode: time 1.451e-06/0.3672, allocations: 0 / 0.7371 GB, free: 12.09 MB / 362.7 MB Notification: Performance of Templates: time 0.03662/0.4038, allocations: 16.13 MB / 0.7529 GB, free: 12.07 MB / 378.7 MB