Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.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.TurbineGenerator,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",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.0007909/0.000791, allocations: 94.22 kB / 16.32 MB, free: 5.578 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.0008695/0.0008697, allocations: 177.8 kB / 17.2 MB, free: 5.496 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.551/1.551, 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.199/0.199, allocations: 38.04 MB / 309.7 MB, free: 6.109 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.0006934/0.0006941, allocations: 16 kB / 376.6 MB, free: 3.062 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.328, allocations: 56.32 MB / 432.9 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.007245/0.3353, allocations: 7.822 MB / 440.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005596/0.3409, allocations: 3.181 MB / 443.9 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001185/0.3421, allocations: 47.69 kB / 444 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007228/0.3429, allocations: 218.5 kB / 444.2 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002067/0.345, allocations: 0.7038 MB / 444.9 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.3461, allocations: 359.3 kB / 445.3 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001919/0.348, allocations: 1.594 MB / 446.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001347/0.3494, allocations: 0.9015 MB / 447.8 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005959/0.35, allocations: 469.9 kB / 448.2 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000704/0.3507, allocations: 0.5957 MB / 448.8 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.156e-05/0.3508, allocations: 40 kB / 448.9 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008616/0.3517, allocations: 375.2 kB / 449.2 MB, free: 2.445 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003343/0.352, allocations: 415 kB / 449.6 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002446/0.3523, allocations: 201.2 kB / 449.8 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008955/0.3532, allocations: 1.068 MB / 450.9 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.3532, allocations: 0 / 450.9 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3532, allocations: 0 / 450.9 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.3532, allocations: 0 / 450.9 MB, free: 0.7656 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.001894/0.3551, allocations: 1.11 MB / 452 MB, free: 15.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.3552, allocations: 8.031 kB / 452 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001753/0.3554, allocations: 143.4 kB / 452.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001132/0.3565, allocations: 214.5 kB / 452.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/0.3578, allocations: 0.6853 MB / 453 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.789e-05/0.3578, allocations: 65.98 kB / 453.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002198/0.358, allocations: 103.8 kB / 453.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.3596, allocations: 1.088 MB / 454.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.967e-05/0.3597, allocations: 4 kB / 454.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.827e-05/0.3598, allocations: 35.98 kB / 454.3 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001678/0.3599, allocations: 69.95 kB / 454.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.3614, allocations: 0.8665 MB / 455.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005717/0.3671, allocations: 4.013 MB / 459.3 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006361/0.3678, allocations: 430.4 kB / 459.7 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004037/0.3682, allocations: 279.3 kB / 460 MB, free: 7.293 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.437e-05/0.3682, allocations: 8.438 kB / 460 MB, free: 7.285 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.3683, allocations: 35 kB / 460 MB, free: 7.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 5.72e-06/0.3683, allocations: 4 kB / 460 MB, free: 7.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=51): time 0.003205/0.3715, allocations: 1.721 MB / 461.7 MB, free: 5.461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.877e-05/0.3716, allocations: 89.55 kB / 461.8 MB, free: 5.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007111/0.3723, allocations: 0.5782 MB / 462.4 MB, free: 4.766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.029e-05/0.3724, allocations: 41.67 kB / 462.4 MB, free: 4.719 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003329/0.3727, allocations: 466.4 kB / 462.9 MB, free: 4.254 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001665/0.3729, allocations: 185.4 kB / 463.1 MB, free: 4.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.163e-05/0.3729, allocations: 12 kB / 463.1 MB, free: 4.059 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002218/0.3731, allocations: 386.8 kB / 463.5 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004143/0.3736, allocations: 249.8 kB / 463.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005995/0.3742, allocations: 473 kB / 464.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005173/0.3747, allocations: 334 kB / 464.5 MB, free: 2.543 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.3747, allocations: 0 / 464.5 MB, free: 2.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002181/0.3769, allocations: 1.114 MB / 465.6 MB, free: 1.398 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.58e-05/0.3769, allocations: 8.375 kB / 465.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001485/0.3784, allocations: 0.7956 MB / 466.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008684/0.3793, allocations: 226.3 kB / 466.6 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005145/0.3798, allocations: 155.7 kB / 466.8 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005883/0.3857, allocations: 5.228 MB / 472 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007094/0.3865, allocations: 35.97 kB / 472.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.262e-05/0.3866, allocations: 32 kB / 472.1 MB, free: 10.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (80): * Single equations (assignments): 77 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005425/0.3871, allocations: 313.5 kB / 472.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.3872, allocations: 67.16 kB / 472.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00115/0.3884, allocations: 0.6127 MB / 473.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.3884, allocations: 8 kB / 473.1 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.3884, allocations: 4 kB / 473.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.3884, allocations: 3.984 kB / 473.1 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002754/0.3912, allocations: 1.486 MB / 474.6 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.3912, allocations: 0 / 474.6 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006024/0.3918, allocations: 131.8 kB / 474.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.167e-05/0.3918, allocations: 4.281 kB / 474.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.564e-05/0.3919, allocations: 8 kB / 474.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.483e-06/0.3919, allocations: 4 kB / 474.7 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.603e-06/0.3919, allocations: 11.89 kB / 474.7 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.3932, allocations: 0.9276 MB / 475.7 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002601/0.3935, allocations: 188.1 kB / 475.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.3936, allocations: 16 kB / 475.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003085/0.3939, allocations: 15.98 kB / 475.9 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.449e-05/0.394, allocations: 36.34 kB / 475.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.988e-05/0.394, allocations: 16 kB / 475.9 MB, free: 6.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000505/0.3946, allocations: 419 kB / 476.3 MB, free: 6.094 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.943e-06/0.3946, allocations: 0 / 476.3 MB, free: 6.094 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008967/0.3955, allocations: 235.9 kB / 476.6 MB, free: 5.863 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (54): * Single equations (assignments): 53 * 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.001983/0.3975, allocations: 1.512 MB / 478.1 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001926/0.3994, allocations: 1.017 MB / 479.1 MB, free: 3.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3994, allocations: 0 / 479.1 MB, free: 3.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004097/0.3998, allocations: 263.6 kB / 479.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008501/0.4007, allocations: 143.8 kB / 479.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009861/0.4106, allocations: 5.546 MB / 485 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/0.4117, allocations: 1.086 MB / 486.1 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007248/0.4124, allocations: 185.9 kB / 486.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005518/0.413, allocations: 327.3 kB / 486.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of SimCode: time 2.033e-06/0.413, allocations: 0 / 486.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03853/0.4515, allocations: 15.8 MB / 0.4907 GB, free: 11.73 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002672/0.4519, allocations: 224 kB / 0.4909 GB, free: 11.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.33/2.782, allocations: 0 / 0.4909 GB, free: 11.48 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1) Environment - environmentSimulation: