Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.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.TurboGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLine",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.0007844/0.0007844, allocations: 92.08 kB / 16.31 MB, free: 5.57 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.0009384/0.0009387, allocations: 175.8 kB / 17.2 MB, free: 5.492 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.676/1.676, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2025/0.2025, allocations: 38.04 MB / 309.7 MB, free: 6.02 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.0005456/0.0005461, allocations: 12 kB / 376.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2889, allocations: 56.33 MB / 433 MB, free: 18.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine): time 0.008721/0.2976, allocations: 10.92 MB / 443.9 MB, free: 7.836 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006918/0.3046, allocations: 4.248 MB / 448.1 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001654/0.3063, allocations: 67.56 kB / 448.2 MB, free: 3.508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001107/0.3075, allocations: 349.6 kB / 448.5 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002548/0.31, allocations: 0.9603 MB / 449.5 MB, free: 2.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001818/0.3118, allocations: 0.5888 MB / 450.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003072/0.3149, allocations: 2.412 MB / 452.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002901/0.3178, allocations: 1.509 MB / 454 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001493/0.3194, allocations: 0.6728 MB / 454.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001544/0.3209, allocations: 0.9346 MB / 455.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001422/0.3211, allocations: 64 kB / 455.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001046/0.3221, allocations: 431.2 kB / 456.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006657/0.3228, allocations: 0.6273 MB / 456.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004299/0.3232, allocations: 304.9 kB / 457 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002165/0.3254, allocations: 1.769 MB / 458.8 MB, free: 8.824 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.3254, allocations: 0 / 458.8 MB, free: 8.824 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3254, allocations: 0 / 458.8 MB, free: 8.824 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.701e-05/0.3255, allocations: 4 kB / 458.8 MB, free: 8.82 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 331 * Number of variables: 331 Notification: Performance of Generate backend data structure: time 0.003117/0.3286, allocations: 1.544 MB / 460.3 MB, free: 7.219 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.3286, allocations: 8.031 kB / 460.3 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000282/0.3289, allocations: 202.2 kB / 460.5 MB, free: 7.004 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001559/0.3305, allocations: 289.8 kB / 460.8 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002125/0.3326, allocations: 1.016 MB / 461.8 MB, free: 5.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.413e-05/0.3327, allocations: 90.34 kB / 461.9 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003386/0.3331, allocations: 143.9 kB / 462.1 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002839/0.3359, allocations: 1.697 MB / 463.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.605e-05/0.336, allocations: 4 kB / 463.8 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/0.3361, allocations: 48 kB / 463.8 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002697/0.3364, allocations: 106.4 kB / 463.9 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002471/0.3389, allocations: 1.438 MB / 465.3 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01003/0.3489, allocations: 6.107 MB / 471.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.3501, allocations: 0.7094 MB / 472.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006844/0.3508, allocations: 472.4 kB / 472.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.824e-05/0.3509, allocations: 12.59 kB / 472.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.124e-05/0.3509, allocations: 47.2 kB / 472.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.595e-06/0.3509, allocations: 0 / 472.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.009227/0.3602, allocations: 4.43 MB / 477.1 MB, free: 5.766 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.3603, allocations: 166.9 kB / 477.3 MB, free: 5.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/0.3614, allocations: 0.8297 MB / 478.1 MB, free: 4.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.977e-05/0.3615, allocations: 41.7 kB / 478.1 MB, free: 4.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004891/0.362, allocations: 0.6428 MB / 478.8 MB, free: 4.012 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002951/0.3623, allocations: 295.7 kB / 479.1 MB, free: 3.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.087e-05/0.3623, allocations: 28.03 kB / 479.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.3625, allocations: 353.9 kB / 479.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007874/0.3633, allocations: 482.3 kB / 479.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.3643, allocations: 0.7697 MB / 480.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009405/0.3653, allocations: 0.6081 MB / 481.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.3653, allocations: 7.953 kB / 481.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.003706/0.369, allocations: 1.905 MB / 483.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002811/0.3693, allocations: 336.2 kB / 483.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00296/0.3723, allocations: 1.511 MB / 485.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001914/0.3742, allocations: 0.5622 MB / 485.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001517/0.3757, allocations: 487.4 kB / 486.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.015/0.3908, allocations: 13.25 MB / 499.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.3921, allocations: 71.95 kB / 499.4 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002103/0.3923, allocations: 55.92 kB / 499.5 MB, free: 14.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.3923, allocations: 4 kB / 499.5 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003672/0.396, allocations: 1.721 MB / 0.4894 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002945/0.399, allocations: 1.448 MB / 0.4909 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001836/0.4008, allocations: 0.5739 MB / 0.4914 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007359/0.4016, allocations: 219.6 kB / 0.4916 GB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01252/0.4141, allocations: 10.15 MB / 0.5015 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.4154, allocations: 59.95 kB / 0.5016 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002168/0.4156, allocations: 44 kB / 0.5016 GB, free: 15.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (118): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,2} * Without analytic Jacobian: 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 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.001237/0.4169, allocations: 0.5047 MB / 0.5021 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003992/0.4173, allocations: 102.7 kB / 0.5022 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002895/0.4202, allocations: 1.425 MB / 0.5036 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.4202, allocations: 8 kB / 0.5036 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/0.4202, allocations: 4 kB / 0.5036 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.4203, allocations: 3.984 kB / 0.5036 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005745/0.426, allocations: 2.886 MB / 0.5065 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.426, allocations: 4 kB / 0.5065 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005509/0.4266, allocations: 135.8 kB / 0.5066 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001091/0.4277, allocations: 391.3 kB / 0.507 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.567e-05/0.4278, allocations: 27.98 kB / 0.507 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008733/0.4365, allocations: 8.673 MB / 0.5155 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.4366, allocations: 0 / 0.5155 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2778/0.7143, allocations: 1.944 MB / 0.5174 GB, free: 81.62 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005655/0.7149, allocations: 262.7 kB / 0.5176 GB, free: 81.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/0.7151, allocations: 30.98 kB / 0.5176 GB, free: 81.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005129/0.7156, allocations: 40.91 kB / 0.5177 GB, free: 81.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001791/0.7158, allocations: 75.28 kB / 0.5178 GB, free: 81.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.612e-05/0.7159, allocations: 29.03 kB / 0.5178 GB, free: 81.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008822/0.7168, allocations: 0.5698 MB / 0.5183 GB, free: 81.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.7168, allocations: 2.344 kB / 0.5183 GB, free: 81.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002584/0.7194, allocations: 0.6423 MB / 0.519 GB, free: 81.41 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 8 (turboGen.generator.i_s[1],turboGen.generator.i_s[2],turboGen.generator.i_s[3],turboGen.rotor.phi,turboGen.rotor.w,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 (66): * Single equations (assignments): 60 * 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.003696/0.7231, allocations: 2.551 MB / 0.5215 GB, free: 80.6 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005889/0.729, allocations: 3.532 MB / 0.5249 GB, free: 79.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.381e-06/0.729, allocations: 3.625 kB / 0.5249 GB, free: 79.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001937/0.7309, allocations: 1.182 MB / 0.5261 GB, free: 78.28 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001345/0.7323, allocations: 228.4 kB / 0.5263 GB, free: 78.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0133/0.7456, allocations: 8.771 MB / 0.5348 GB, free: 73.85 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009114/0.7466, allocations: 1.339 MB / 0.5362 GB, free: 73.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00104/0.7476, allocations: 351.4 kB / 0.5365 GB, free: 72.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000561/0.7482, allocations: 499.7 kB / 0.537 GB, free: 72.35 MB / 398.1 MB Notification: Performance of SimCode: time 1.603e-06/0.7482, allocations: 0 / 0.537 GB, free: 72.35 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04801/0.7962, allocations: 31.11 MB / 0.5673 GB, free: 41.84 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/0.7965, allocations: 218.2 kB / 0.5675 GB, free: 41.61 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.579/3.376, allocations: 4 kB / 0.5676 GB, free: 41.61 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLine.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe 2>&1) Environment - environmentSimulation: