Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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.TurbineGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",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.001201/0.001201, allocations: 87.34 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.001117/0.001118, allocations: 180.4 kB / 17.21 MB, free: 6.32 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.578/1.578, allocations: 205.4 MB / 223.4 MB, free: 5.27 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.4324/0.4324, allocations: 38.06 MB / 309.7 MB, free: 9.016 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.0005778/0.0005778, allocations: 16 kB / 376.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1411, allocations: 56.34 MB / 433 MB, free: 6.586 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01117/0.1524, allocations: 10.02 MB / 443 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007468/0.1599, allocations: 3.859 MB / 446.8 MB, free: 8.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001428/0.1614, allocations: 63.56 kB / 446.9 MB, free: 8.598 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001126/0.1625, allocations: 317.8 kB / 447.2 MB, free: 8.285 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002876/0.1654, allocations: 0.9138 MB / 448.1 MB, free: 7.367 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001569/0.167, allocations: 475.1 kB / 448.6 MB, free: 6.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003122/0.1701, allocations: 2.174 MB / 450.8 MB, free: 4.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002397/0.1725, allocations: 1.326 MB / 452.1 MB, free: 3.344 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/0.1736, allocations: 0.6145 MB / 452.7 MB, free: 2.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001188/0.1748, allocations: 0.8684 MB / 453.6 MB, free: 1.855 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.1749, allocations: 56 kB / 453.6 MB, free: 1.801 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008591/0.1758, allocations: 423.2 kB / 454 MB, free: 1.387 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005574/0.1763, allocations: 0.5883 MB / 454.6 MB, free: 0.7969 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002706/0.1766, allocations: 265 kB / 454.9 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2776/0.4542, allocations: 1.423 MB / 456.3 MB, free: 35.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.4543, allocations: 0 / 456.3 MB, free: 35.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.4543, allocations: 0 / 456.3 MB, free: 35.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.279e-05/0.4543, allocations: 3.188 kB / 456.3 MB, free: 35.21 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: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.00239/0.4567, allocations: 1.397 MB / 457.7 MB, free: 34.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/0.4568, allocations: 13.34 kB / 457.7 MB, free: 34.45 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002072/0.457, allocations: 179.6 kB / 457.9 MB, free: 34.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001379/0.4584, allocations: 269.9 kB / 458.2 MB, free: 34.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001527/0.4599, allocations: 0.8798 MB / 459 MB, free: 34.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.119e-05/0.46, allocations: 81.86 kB / 459.1 MB, free: 34.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002732/0.4603, allocations: 133.3 kB / 459.3 MB, free: 34.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001948/0.4623, allocations: 1.488 MB / 460.7 MB, free: 33.83 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.556e-05/0.4623, allocations: 3.125 kB / 460.7 MB, free: 33.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.57e-05/0.4624, allocations: 41.56 kB / 460.8 MB, free: 33.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002393/0.4626, allocations: 104 kB / 460.9 MB, free: 33.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001653/0.4643, allocations: 1.249 MB / 462.1 MB, free: 33.81 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006123/0.4704, allocations: 5.68 MB / 467.8 MB, free: 31.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007266/0.4712, allocations: 0.5848 MB / 468.4 MB, free: 31.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004419/0.4717, allocations: 396.3 kB / 468.8 MB, free: 31.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.219e-05/0.4717, allocations: 12 kB / 468.8 MB, free: 31.05 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.4718, allocations: 38.06 kB / 468.8 MB, free: 31.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=67): time 2.214e-06/0.4718, allocations: 0 / 468.8 MB, free: 31.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=74): time 0.006221/0.478, allocations: 3.644 MB / 472.5 MB, free: 29.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.397e-05/0.4781, allocations: 84.88 kB / 472.6 MB, free: 29.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008369/0.4789, allocations: 0.7283 MB / 473.3 MB, free: 29.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.075e-05/0.479, allocations: 43.53 kB / 473.3 MB, free: 29.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003156/0.4793, allocations: 0.5868 MB / 473.9 MB, free: 29.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001796/0.4795, allocations: 264.4 kB / 474.2 MB, free: 29.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.73e-05/0.4795, allocations: 21.22 kB / 474.2 MB, free: 29.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.4797, allocations: 408.9 kB / 474.6 MB, free: 28.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000564/0.4803, allocations: 384.2 kB / 475 MB, free: 28.78 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007324/0.481, allocations: 0.6595 MB / 475.6 MB, free: 28.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006431/0.4816, allocations: 0.5008 MB / 476.1 MB, free: 28.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.4817, allocations: 3.125 kB / 476.1 MB, free: 28.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002822/0.4845, allocations: 1.699 MB / 477.8 MB, free: 28.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.4845, allocations: 8.938 kB / 477.8 MB, free: 28.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002127/0.4867, allocations: 1.304 MB / 479.1 MB, free: 28.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001612/0.4883, allocations: 0.5873 MB / 479.7 MB, free: 28.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00058/0.4889, allocations: 174.2 kB / 479.9 MB, free: 28.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009437/0.4983, allocations: 9.443 MB / 489.3 MB, free: 22.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/0.4994, allocations: 40.34 kB / 489.4 MB, free: 22.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-05/0.4995, allocations: 48.22 kB / 489.4 MB, free: 22.73 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (93): * Single equations (assignments): 89 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {3 16} Notification: Performance of prepare postOptimizeDAE: time 0.0007209/0.5002, allocations: 382.4 kB / 489.8 MB, free: 22.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/0.5003, allocations: 97.39 kB / 489.9 MB, free: 22.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001962/0.5023, allocations: 1.25 MB / 491.2 MB, free: 21.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.5023, allocations: 9.406 kB / 491.2 MB, free: 21.99 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.5023, allocations: 3.094 kB / 491.2 MB, free: 21.99 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.5024, allocations: 3.422 kB / 491.2 MB, free: 21.99 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003748/0.5061, allocations: 2.4 MB / 493.6 MB, free: 20.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.5061, allocations: 3.188 kB / 493.6 MB, free: 20.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004983/0.5066, allocations: 107.1 kB / 493.7 MB, free: 20.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001128/0.5078, allocations: 375.1 kB / 494 MB, free: 20.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.538e-05/0.5079, allocations: 27.89 kB / 494.1 MB, free: 20.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007325/0.5152, allocations: 8.487 MB / 0.4908 GB, free: 29.45 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.5152, allocations: 9.75 kB / 0.4908 GB, free: 29.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/0.518, allocations: 1.666 MB / 0.4924 GB, free: 28.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000446/0.5185, allocations: 232.6 kB / 0.4926 GB, free: 28.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.5186, allocations: 31.81 kB / 0.4927 GB, free: 28.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004225/0.519, allocations: 25.22 kB / 0.4927 GB, free: 28.49 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.5192, allocations: 59.95 kB / 0.4927 GB, free: 28.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.292e-05/0.5192, allocations: 22.95 kB / 0.4928 GB, free: 28.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008138/0.5201, allocations: 0.502 MB / 0.4933 GB, free: 28.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5201, allocations: 2.297 kB / 0.4933 GB, free: 28.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001683/0.5218, allocations: 368.2 kB / 0.4936 GB, free: 28.23 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 8 (turboGrp.phi,turboGrp.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * 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 (57): * Single equations (assignments): 51 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 10,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003213/0.525, allocations: 2.25 MB / 0.4958 GB, free: 26.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002648/0.5276, allocations: 1.581 MB / 0.4974 GB, free: 26.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.5277, allocations: 1.125 kB / 0.4974 GB, free: 26.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001617/0.5293, allocations: 1.09 MB / 0.4984 GB, free: 25.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/0.5304, allocations: 201.9 kB / 0.4986 GB, free: 25.29 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/0.5446, allocations: 7.666 MB / 0.5061 GB, free: 21.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00153/0.5461, allocations: 1.255 MB / 0.5073 GB, free: 20.54 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007997/0.547, allocations: 219.6 kB / 0.5075 GB, free: 20.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006048/0.5476, allocations: 446.8 kB / 0.508 GB, free: 20.15 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5476, allocations: 0 / 0.508 GB, free: 20.15 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05566/0.6033, allocations: 23.58 MB / 0.531 GB, free: 4.559 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002077/0.6035, allocations: 232.5 kB / 0.5312 GB, free: 4.312 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.509/3.112, allocations: 0 / 0.5312 GB, free: 4.312 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1) Environment - environmentSimulation: