Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Frequency.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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.Frequency") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 94.59 kB / 16.3 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.00125, allocations: 184.5 kB / 17.2 MB, free: 6.34 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.727/1.727, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2804/0.2804, allocations: 38.04 MB / 309.7 MB, free: 6.141 MB / 254.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.0008171/0.0008172, allocations: 20 kB / 376.5 MB, free: 3.223 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3855/0.3863, allocations: 56.33 MB / 432.8 MB, free: 18.87 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.006056/0.3925, allocations: 5.845 MB / 438.6 MB, free: 13 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002572/0.3951, allocations: 1.564 MB / 440.2 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003603/0.3955, allocations: 51.62 kB / 440.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002379/0.3957, allocations: 91.34 kB / 440.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008116/0.3965, allocations: 354.9 kB / 440.7 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000392/0.3969, allocations: 195.6 kB / 440.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004229/0.3974, allocations: 399.1 kB / 441.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002633/0.3976, allocations: 134.5 kB / 441.4 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000298/0.3979, allocations: 231.1 kB / 441.6 MB, free: 9.992 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003638/0.3983, allocations: 239.2 kB / 441.9 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.78e-05/0.3984, allocations: 16 kB / 441.9 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.05e-05/0.3984, allocations: 20 kB / 441.9 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001242/0.3985, allocations: 135.6 kB / 442 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.621e-05/0.3987, allocations: 109.5 kB / 442.1 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002704/0.3989, allocations: 359 kB / 442.5 MB, free: 9.125 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.3989, allocations: 0 / 442.5 MB, free: 9.125 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.399, allocations: 0 / 442.5 MB, free: 9.125 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.399, allocations: 0 / 442.5 MB, free: 9.125 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001202/0.4002, allocations: 0.7305 MB / 443.2 MB, free: 8.348 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.4002, allocations: 8.031 kB / 443.2 MB, free: 8.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.94e-05/0.4003, allocations: 55.34 kB / 443.3 MB, free: 8.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005805/0.4009, allocations: 419.3 kB / 443.7 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.755e-05/0.4009, allocations: 25 kB / 443.7 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.668e-05/0.401, allocations: 40 kB / 443.8 MB, free: 7.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000556/0.4016, allocations: 451.6 kB / 444.2 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.4016, allocations: 3.938 kB / 444.2 MB, free: 7.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.021e-05/0.4016, allocations: 12 kB / 444.2 MB, free: 7.277 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.4016, allocations: 19.95 kB / 444.2 MB, free: 7.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003772/0.402, allocations: 308.5 kB / 444.5 MB, free: 6.957 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001538/0.4036, allocations: 1.767 MB / 446.3 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00017/0.4038, allocations: 143.8 kB / 446.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.4038, allocations: 4 kB / 446.4 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.4038, allocations: 38.66 kB / 446.5 MB, free: 4.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/0.4038, allocations: 0 / 446.5 MB, free: 4.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008287/0.4047, allocations: 0.5998 MB / 447.1 MB, free: 4.203 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.4047, allocations: 110.8 kB / 447.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002807/0.405, allocations: 369.5 kB / 447.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.405, allocations: 33.7 kB / 447.6 MB, free: 3.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.4052, allocations: 275.4 kB / 447.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.519e-05/0.4052, allocations: 55.2 kB / 447.9 MB, free: 3.332 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.496e-06/0.4052, allocations: 4.125 kB / 447.9 MB, free: 3.328 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.988e-05/0.4053, allocations: 354.8 kB / 448.3 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.275e-05/0.4054, allocations: 51.97 kB / 448.3 MB, free: 2.922 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.4055, allocations: 182.9 kB / 448.5 MB, free: 2.676 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.4057, allocations: 87.84 kB / 448.6 MB, free: 2.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4057, allocations: 4 kB / 448.6 MB, free: 2.586 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003271/0.406, allocations: 289.2 kB / 448.9 MB, free: 2.297 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.406, allocations: 4.062 kB / 448.9 MB, free: 2.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.4061, allocations: 12 kB / 448.9 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.614e-05/0.4061, allocations: 4 kB / 448.9 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000233/0.4063, allocations: 67.91 kB / 448.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.4064, allocations: 15.88 kB / 449 MB, free: 2.195 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001501/0.4065, allocations: 8 kB / 449 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.4065, allocations: 16 kB / 449 MB, free: 2.172 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001476/0.4067, allocations: 181.7 kB / 449.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.188e-05/0.4068, allocations: 43.47 kB / 449.2 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002348/0.407, allocations: 185.1 kB / 449.4 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.407, allocations: 0 / 449.4 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.407, allocations: 4 kB / 449.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.407, allocations: 0 / 449.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005074/0.4075, allocations: 0.5342 MB / 449.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4076, allocations: 0 / 449.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.4077, allocations: 31.98 kB / 450 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.4077, allocations: 4.031 kB / 450 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.4078, allocations: 8 kB / 450 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.4078, allocations: 3.938 kB / 450 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4078, allocations: 4 kB / 450 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003441/0.4081, allocations: 429.4 kB / 450.4 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-05/0.4082, allocations: 112.7 kB / 450.5 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.036e-05/0.4083, allocations: 4 kB / 450.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.4084, allocations: 4 kB / 450.5 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.511e-05/0.4085, allocations: 19.88 kB / 450.5 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.809e-06/0.4085, allocations: 4.438 kB / 450.5 MB, free: 500 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001913/0.4087, allocations: 251.2 kB / 450.8 MB, free: 252 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4087, allocations: 4 kB / 450.8 MB, free: 248 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003664/0.409, allocations: 72 kB / 450.9 MB, free: 176 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * 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 9.234e-05/0.4091, allocations: 95.25 kB / 450.9 MB, free: 72 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002841/0.4094, allocations: 156.5 kB / 451.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4094, allocations: 384 / 451.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.822e-05/0.4095, allocations: 59.86 kB / 451.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005355/0.4101, allocations: 93.69 kB / 451.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/0.4116, allocations: 1.073 MB / 452.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004854/0.4121, allocations: 0.8545 MB / 453.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001674/0.4123, allocations: 47.25 kB / 453.2 MB, free: 13.73 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.419e-05/0.4124, allocations: 31.38 kB / 453.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4124, allocations: 4 kB / 453.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of Templates: time 0.007364/0.4198, allocations: 2.959 MB / 456.2 MB, free: 10.75 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.Frequency.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Frequency.sim & ./PowerSystems_PowerSystems.Examples.Introductory.Frequency -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) Environment - environmentSimulation: