Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) 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) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000898/0.000898, allocations: 171.8 kB / 16.07 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.216/1.216, allocations: 205.4 MB / 222.2 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007409/0.0007409, allocations: 86.34 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1696/0.1696, allocations: 38.07 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003379/0.000338, allocations: 16 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2228, allocations: 56.32 MB / 479.6 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.008132/0.231, allocations: 9.438 MB / 489.1 MB, free: 2.781 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005121/0.2361, allocations: 3.47 MB / 492.5 MB, free: 304 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001131/0.2373, allocations: 62.62 kB / 492.6 MB, free: 280 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009149/0.2382, allocations: 287.2 kB / 492.9 MB, free: 136 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002209/0.2404, allocations: 0.7688 MB / 493.6 MB, free: 15.72 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.2418, allocations: 428.4 kB / 494.1 MB, free: 15.51 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002807/0.2446, allocations: 2.018 MB / 496.1 MB, free: 14.68 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001682/0.2463, allocations: 1.022 MB / 497.1 MB, free: 14.09 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00114/0.2475, allocations: 0.5943 MB / 497.7 MB, free: 13.84 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001229/0.2487, allocations: 0.7214 MB / 498.4 MB, free: 13.57 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001839/0.2489, allocations: 55.88 kB / 498.5 MB, free: 13.57 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007129/0.2496, allocations: 280.4 kB / 498.7 MB, free: 13.52 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004957/0.2501, allocations: 401.7 kB / 499.1 MB, free: 13.39 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007859/0.2509, allocations: 0.5948 MB / 499.7 MB, free: 13.02 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001753/0.2527, allocations: 1.518 MB / 0.4895 GB, free: 12.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.2527, allocations: 4 kB / 0.4895 GB, free: 12.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.519e-06/0.2527, allocations: 0 / 0.4895 GB, free: 12.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.193e-05/0.2528, allocations: 7.875 kB / 0.4895 GB, free: 12.24 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.002863/0.2556, allocations: 1.403 MB / 0.4909 GB, free: 11.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.2557, allocations: 9 kB / 0.4909 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007315/0.2564, allocations: 196.3 kB / 0.4911 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001621/0.258, allocations: 0.9133 MB / 0.492 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.188e-05/0.2581, allocations: 84.56 kB / 0.4921 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002765/0.2584, allocations: 123.2 kB / 0.4922 GB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002181/0.2606, allocations: 1.341 MB / 0.4935 GB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.362e-05/0.2607, allocations: 5.688 kB / 0.4935 GB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.943e-05/0.2608, allocations: 42.41 kB / 0.4935 GB, free: 9.402 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001131/0.2609, allocations: 66.66 kB / 0.4936 GB, free: 9.391 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.2628, allocations: 1.081 MB / 0.4946 GB, free: 8.848 MB / 330.7 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.0008318498358936397 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007078/0.2699, allocations: 5.149 MB / 0.4997 GB, free: 4.668 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.2711, allocations: 0.7649 MB / 0.5004 GB, free: 4.176 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005243/0.2716, allocations: 345.6 kB / 0.5008 GB, free: 3.992 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.35e-05/0.2717, allocations: 11.55 kB / 0.5008 GB, free: 3.988 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.2717, allocations: 38.22 kB / 0.5008 GB, free: 3.945 MB / 330.7 MB Notification: Performance of pre-optimization done (n=64): time 3.056e-06/0.2717, allocations: 0 / 0.5008 GB, free: 3.945 MB / 330.7 MB Notification: Performance of matching and sorting (n=71): time 0.005814/0.2775, allocations: 2.713 MB / 0.5034 GB, free: 1.859 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.875e-05/0.2776, allocations: 141 kB / 0.5036 GB, free: 1.691 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009581/0.2786, allocations: 0.7472 MB / 0.5043 GB, free: 0.9336 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.494e-05/0.2787, allocations: 37.7 kB / 0.5043 GB, free: 0.8906 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000385/0.2791, allocations: 0.5688 MB / 0.5049 GB, free: 320 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002085/0.2793, allocations: 256.4 kB / 0.5051 GB, free: 60 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.455e-05/0.2793, allocations: 16 kB / 0.5052 GB, free: 44 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.2795, allocations: 338 kB / 0.5055 GB, free: 15.71 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005111/0.28, allocations: 289.8 kB / 0.5058 GB, free: 15.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006532/0.2807, allocations: 0.5451 MB / 0.5063 GB, free: 14.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.2819, allocations: 0.8975 MB / 0.5072 GB, free: 13.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.2819, allocations: 7.938 kB / 0.5072 GB, free: 13.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.00277/0.2847, allocations: 1.363 MB / 0.5085 GB, free: 12.37 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001954/0.2849, allocations: 325.9 kB / 0.5088 GB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.2849, allocations: 8 kB / 0.5088 GB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/0.2863, allocations: 440.5 kB / 0.5092 GB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006538/0.287, allocations: 171.7 kB / 0.5094 GB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007728/0.2948, allocations: 4.936 MB / 0.5142 GB, free: 6.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007704/0.2956, allocations: 43.97 kB / 0.5143 GB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.942e-05/0.2957, allocations: 32 kB / 0.5143 GB, free: 6.184 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/0.2957, allocations: 8 kB / 0.5143 GB, free: 6.176 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002375/0.2981, allocations: 1.148 MB / 0.5154 GB, free: 5.023 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/0.2981, allocations: 8 kB / 0.5154 GB, free: 5.016 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001207/0.2993, allocations: 396.8 kB / 0.5158 GB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000628/0.3, allocations: 167.8 kB / 0.516 GB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00652/0.3065, allocations: 4.636 MB / 0.5205 GB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006674/0.3072, allocations: 39.92 kB / 0.5205 GB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.167e-05/0.3073, allocations: 40 kB / 0.5206 GB, free: 15.61 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * 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.0007066/0.308, allocations: 433.1 kB / 0.521 GB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002036/0.3082, allocations: 90.88 kB / 0.5211 GB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001475/0.3097, allocations: 0.883 MB / 0.5219 GB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.3097, allocations: 8 kB / 0.522 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3097, allocations: 3.938 kB / 0.522 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.3097, allocations: 3.984 kB / 0.522 GB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003011/0.3127, allocations: 1.876 MB / 0.5238 GB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.3128, allocations: 0 / 0.5238 GB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007972/0.3136, allocations: 167.8 kB / 0.524 GB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.717e-06/0.3136, allocations: 4 kB / 0.524 GB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.596e-05/0.3137, allocations: 23.98 kB / 0.524 GB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.034e-06/0.3137, allocations: 7.938 kB / 0.524 GB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.3137, allocations: 0 / 0.524 GB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001783/0.3155, allocations: 1.274 MB / 0.5252 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003933/0.3159, allocations: 227.9 kB / 0.5254 GB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001535/0.316, allocations: 12 kB / 0.5255 GB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005107/0.3166, allocations: 35.98 kB / 0.5255 GB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.781e-05/0.3167, allocations: 44.53 kB / 0.5255 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.357e-05/0.3167, allocations: 19.98 kB / 0.5256 GB, free: 10.37 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006818/0.3174, allocations: 0.5068 MB / 0.526 GB, free: 9.863 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3174, allocations: 0 / 0.526 GB, free: 9.863 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001619/0.319, allocations: 473.3 kB / 0.5265 GB, free: 9.402 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,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.0003141/0.3194, allocations: 154.2 kB / 0.5266 GB, free: 9.246 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003293/0.3227, allocations: 1.9 MB / 0.5285 GB, free: 7.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.3227, allocations: 0 / 0.5285 GB, free: 7.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005397/0.3232, allocations: 359.5 kB / 0.5288 GB, free: 6.973 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001348/0.3246, allocations: 227.7 kB / 0.5291 GB, free: 6.758 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004385/0.329, allocations: 3.12 MB / 0.5321 GB, free: 3.602 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008714/0.3299, allocations: 1.201 MB / 0.5333 GB, free: 2.371 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002968/0.3302, allocations: 75.42 kB / 0.5334 GB, free: 2.297 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.3302, allocations: 7.938 kB / 0.5334 GB, free: 2.289 MB / 362.7 MB Notification: Performance of Templates: time 0.02297/0.3532, allocations: 17.03 MB / 0.55 GB, free: 1.238 MB / 378.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)