Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008978/0.0008978, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.001192/0.001192, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.767/1.767, allocations: 205.4 MB / 223.4 MB, free: 5.293 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3774/0.3774, allocations: 38.05 MB / 309.7 MB, free: 9.004 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.0005668/0.0005669, allocations: 16 kB / 376.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1486, allocations: 56.33 MB / 433 MB, free: 6.586 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01249/0.1611, allocations: 9.383 MB / 442.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008055/0.1693, allocations: 3.484 MB / 445.8 MB, free: 9.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001831/0.1711, allocations: 63.62 kB / 445.9 MB, free: 9.609 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001585/0.1727, allocations: 282 kB / 446.2 MB, free: 9.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003526/0.1763, allocations: 0.7696 MB / 446.9 MB, free: 8.559 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001826/0.1782, allocations: 419.3 kB / 447.3 MB, free: 8.148 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003414/0.1816, allocations: 2.018 MB / 449.4 MB, free: 6.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002169/0.1838, allocations: 0.8606 MB / 450.2 MB, free: 5.219 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001362/0.1852, allocations: 0.591 MB / 450.8 MB, free: 4.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001512/0.1867, allocations: 0.7238 MB / 451.5 MB, free: 3.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003399/0.1871, allocations: 56 kB / 451.6 MB, free: 3.844 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000942/0.188, allocations: 287.5 kB / 451.9 MB, free: 3.562 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007123/0.1887, allocations: 402.8 kB / 452.3 MB, free: 3.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006579/0.1894, allocations: 273 kB / 452.5 MB, free: 2.895 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001863/0.1913, allocations: 1.52 MB / 454 MB, free: 1.371 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.1913, allocations: 0 / 454 MB, free: 1.371 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1913, allocations: 0 / 454 MB, free: 1.371 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.66e-05/0.1913, allocations: 0 / 454 MB, free: 1.371 MB / 382.1 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.2737/0.4651, allocations: 1.415 MB / 455.5 MB, free: 51.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.4651, allocations: 8.594 kB / 455.5 MB, free: 51.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008693/0.466, allocations: 172.7 kB / 455.6 MB, free: 51.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009763/0.467, allocations: 189.8 kB / 455.8 MB, free: 51.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001583/0.4686, allocations: 0.8892 MB / 456.7 MB, free: 50.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.199e-05/0.4687, allocations: 82.17 kB / 456.8 MB, free: 50.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002362/0.4689, allocations: 125.6 kB / 456.9 MB, free: 50.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002007/0.4709, allocations: 1.339 MB / 458.3 MB, free: 50.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.505e-05/0.471, allocations: 6.312 kB / 458.3 MB, free: 50.49 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.4711, allocations: 42.14 kB / 458.3 MB, free: 50.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001081/0.4712, allocations: 68.11 kB / 458.4 MB, free: 50.49 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001597/0.4728, allocations: 1.077 MB / 459.4 MB, free: 50.48 MB / 382.1 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.006061/0.4789, allocations: 5.16 MB / 464.6 MB, free: 48.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009588/0.4799, allocations: 0.7612 MB / 465.4 MB, free: 47.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004248/0.4803, allocations: 345.6 kB / 465.7 MB, free: 47.53 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.379e-05/0.4804, allocations: 9.906 kB / 465.7 MB, free: 47.53 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.4804, allocations: 49.25 kB / 465.8 MB, free: 47.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=64): time 2.785e-06/0.4804, allocations: 0 / 465.8 MB, free: 47.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=71): time 0.004595/0.485, allocations: 2.693 MB / 468.5 MB, free: 45.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/0.4851, allocations: 143.6 kB / 468.6 MB, free: 45.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007423/0.4858, allocations: 0.752 MB / 469.3 MB, free: 45.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.43e-05/0.4859, allocations: 41.05 kB / 469.4 MB, free: 45.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002853/0.4862, allocations: 0.5632 MB / 470 MB, free: 45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.4863, allocations: 256.2 kB / 470.2 MB, free: 44.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.859e-05/0.4864, allocations: 15.16 kB / 470.2 MB, free: 44.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.491e-05/0.4864, allocations: 341.5 kB / 470.5 MB, free: 44.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004242/0.4869, allocations: 285.5 kB / 470.8 MB, free: 44.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005222/0.4874, allocations: 0.552 MB / 471.4 MB, free: 43.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005139/0.4879, allocations: 399.3 kB / 471.8 MB, free: 43.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4879, allocations: 0 / 471.8 MB, free: 43.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002308/0.4903, allocations: 1.366 MB / 473.1 MB, free: 43.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001514/0.4904, allocations: 328.5 kB / 473.5 MB, free: 42.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.4904, allocations: 6.562 kB / 473.5 MB, free: 42.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001268/0.4917, allocations: 446 kB / 473.9 MB, free: 42.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005894/0.4923, allocations: 169.4 kB / 474.1 MB, free: 42.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006728/0.4991, allocations: 4.932 MB / 479 MB, free: 39.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007322/0.4998, allocations: 38.09 kB / 479 MB, free: 39.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-05/0.4999, allocations: 39.16 kB / 479.1 MB, free: 39.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.4999, allocations: 3 kB / 479.1 MB, free: 39.83 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002079/0.502, allocations: 1.147 MB / 480.2 MB, free: 39.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.502, allocations: 9.5 kB / 480.2 MB, free: 39.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001113/0.5031, allocations: 403.4 kB / 480.6 MB, free: 39.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005586/0.5037, allocations: 167.2 kB / 480.8 MB, free: 39.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005999/0.5097, allocations: 4.626 MB / 485.4 MB, free: 36.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006777/0.5104, allocations: 46.39 kB / 485.5 MB, free: 36.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.258e-05/0.5105, allocations: 32.5 kB / 485.5 MB, free: 36.44 MB / 382.1 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.0006981/0.5112, allocations: 436.5 kB / 485.9 MB, free: 36.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002836/0.5115, allocations: 91.44 kB / 486 MB, free: 36.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001324/0.5128, allocations: 0.8772 MB / 486.9 MB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.5128, allocations: 18.45 kB / 486.9 MB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.5128, allocations: 0 / 486.9 MB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.5128, allocations: 6.438 kB / 486.9 MB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002549/0.5154, allocations: 1.858 MB / 488.8 MB, free: 34.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.5154, allocations: 7.703 kB / 488.8 MB, free: 34.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007343/0.5162, allocations: 166.9 kB / 488.9 MB, free: 34.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.774e-06/0.5162, allocations: 3.062 kB / 488.9 MB, free: 34.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.955e-05/0.5162, allocations: 21.41 kB / 489 MB, free: 34.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.5163, allocations: 5.75 kB / 489 MB, free: 34.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.5163, allocations: 2.906 kB / 489 MB, free: 34.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.5178, allocations: 1.272 MB / 490.2 MB, free: 34.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002817/0.5181, allocations: 227.1 kB / 490.5 MB, free: 33.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.5182, allocations: 21.56 kB / 490.5 MB, free: 33.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004037/0.5186, allocations: 27.73 kB / 490.5 MB, free: 33.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.635e-05/0.5187, allocations: 47.05 kB / 490.6 MB, free: 33.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.139e-05/0.5188, allocations: 20.22 kB / 490.6 MB, free: 33.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000615/0.5194, allocations: 0.5054 MB / 491.1 MB, free: 33.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.753e-06/0.5194, allocations: 0 / 491.1 MB, free: 33.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001956/0.5214, allocations: 465.2 kB / 491.5 MB, free: 33.55 MB / 382.1 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.002299/0.5237, allocations: 1.878 MB / 493.4 MB, free: 32.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0037/0.5274, allocations: 1.907 MB / 495.3 MB, free: 31.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.5274, allocations: 1.156 kB / 495.3 MB, free: 31.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005493/0.528, allocations: 358.2 kB / 495.7 MB, free: 31.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.5292, allocations: 236.6 kB / 495.9 MB, free: 31.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01146/0.5407, allocations: 7.102 MB / 0.4912 GB, free: 27.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008145/0.5415, allocations: 1.202 MB / 0.4924 GB, free: 26.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009754/0.5425, allocations: 250.1 kB / 0.4926 GB, free: 26.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000568/0.5431, allocations: 432 kB / 0.493 GB, free: 26.26 MB / 382.1 MB Notification: Performance of SimCode: time 9.51e-07/0.5431, allocations: 0 / 0.493 GB, free: 26.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04775/0.5909, allocations: 25.82 MB / 0.5183 GB, free: 9.395 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/0.5911, allocations: 215.2 kB / 0.5185 GB, free: 9.156 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.316/2.907, allocations: 4 kB / 0.5185 GB, free: 9.152 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1) Environment - environmentSimulation: