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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001281/0.001281, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001562/0.001562, allocations: 193.4 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1859/0.1859, allocations: 38.04 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 63.89 kB / 457.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3341, allocations: 58.07 MB / 0.5036 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.007734/0.3418, allocations: 7.514 MB / 0.511 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005921/0.3478, allocations: 2.967 MB / 0.5139 GB, free: 36 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008196/0.3487, allocations: 24.56 kB / 0.5139 GB, free: 28 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0024/0.3511, allocations: 0.7356 MB / 0.5146 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002586/0.3537, allocations: 0.696 MB / 0.5153 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001272/0.355, allocations: 382.5 kB / 0.5157 GB, free: 15.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00254/0.3575, allocations: 1.351 MB / 0.517 GB, free: 14.44 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001217/0.3588, allocations: 0.7116 MB / 0.5177 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.3601, allocations: 0.5549 MB / 0.5182 GB, free: 13.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00138/0.3615, allocations: 0.6195 MB / 0.5188 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00017/0.3617, allocations: 74.59 kB / 0.5189 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001198/0.3629, allocations: 486.5 kB / 0.5194 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005479/0.3634, allocations: 448.7 kB / 0.5198 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000773/0.3642, allocations: 0.5076 MB / 0.5203 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00259/0.3668, allocations: 1.432 MB / 0.5217 GB, free: 12.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3668, allocations: 0 / 0.5217 GB, free: 12.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3669, allocations: 0 / 0.5217 GB, free: 12.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.458e-05/0.3669, allocations: 0 / 0.5217 GB, free: 12.55 MB / 398.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.003095/0.37, allocations: 1.305 MB / 0.523 GB, free: 11.67 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.3701, allocations: 9.625 kB / 0.523 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002252/0.3703, allocations: 144.7 kB / 0.5231 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001362/0.3717, allocations: 212.6 kB / 0.5233 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001924/0.3736, allocations: 0.7483 MB / 0.524 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.72e-05/0.3737, allocations: 62.41 kB / 0.5241 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002977/0.374, allocations: 96.03 kB / 0.5242 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002247/0.3762, allocations: 1.096 MB / 0.5253 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.016e-05/0.3763, allocations: 7.188 kB / 0.5253 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.868e-05/0.3764, allocations: 37.11 kB / 0.5253 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001852/0.3766, allocations: 67.28 kB / 0.5254 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001663/0.3783, allocations: 0.8725 MB / 0.5262 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006376/0.3847, allocations: 3.982 MB / 0.5301 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007347/0.3854, allocations: 436.1 kB / 0.5305 GB, free: 7.148 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000433/0.3859, allocations: 278.1 kB / 0.5308 GB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.389e-05/0.3859, allocations: 10.48 kB / 0.5308 GB, free: 7.004 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.398e-05/0.386, allocations: 45.53 kB / 0.5308 GB, free: 6.953 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.375e-06/0.386, allocations: 4 kB / 0.5308 GB, free: 6.949 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.003488/0.3895, allocations: 1.733 MB / 0.5325 GB, free: 5.875 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.177e-05/0.3896, allocations: 91.02 kB / 0.5326 GB, free: 5.773 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009635/0.3906, allocations: 0.5895 MB / 0.5332 GB, free: 5.422 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.075e-05/0.3907, allocations: 35.89 kB / 0.5332 GB, free: 5.383 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000551/0.3912, allocations: 475 kB / 0.5337 GB, free: 4.965 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002727/0.3915, allocations: 203.3 kB / 0.5339 GB, free: 4.789 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000325/0.3918, allocations: 137.2 kB / 0.534 GB, free: 4.707 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002157/0.3921, allocations: 376.5 kB / 0.5344 GB, free: 4.348 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004196/0.3925, allocations: 252.2 kB / 0.5346 GB, free: 4.227 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005764/0.3931, allocations: 481 kB / 0.5351 GB, free: 3.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.3942, allocations: 0.7796 MB / 0.5358 GB, free: 3.246 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.3942, allocations: 2.5 kB / 0.5358 GB, free: 3.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002159/0.3963, allocations: 1.115 MB / 0.5369 GB, free: 2.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.3964, allocations: 8.469 kB / 0.5369 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001399/0.3978, allocations: 0.7945 MB / 0.5377 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007208/0.3985, allocations: 220.1 kB / 0.5379 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005177/0.399, allocations: 152.8 kB / 0.5381 GB, free: 1.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01296/0.412, allocations: 5.681 MB / 0.5436 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007857/0.4128, allocations: 34.16 kB / 0.5436 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.725e-05/0.4129, allocations: 36.38 kB / 0.5437 GB, free: 12.8 MB / 414.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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005682/0.4135, allocations: 305.6 kB / 0.544 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.4136, allocations: 72.53 kB / 0.544 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009633/0.4146, allocations: 0.6062 MB / 0.5446 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.4146, allocations: 9.484 kB / 0.5446 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.4146, allocations: 1.375 kB / 0.5446 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.4146, allocations: 4 kB / 0.5446 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002349/0.417, allocations: 1.482 MB / 0.5461 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.417, allocations: 2.719 kB / 0.5461 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005982/0.4176, allocations: 125.5 kB / 0.5462 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-05/0.4176, allocations: 11.5 kB / 0.5462 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.102e-05/0.4177, allocations: 14.44 kB / 0.5462 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.686e-06/0.4177, allocations: 7.797 kB / 0.5462 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.4177, allocations: 9.094 kB / 0.5462 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.4189, allocations: 0.9234 MB / 0.5471 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002451/0.4192, allocations: 192 kB / 0.5473 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.959e-05/0.4193, allocations: 15.22 kB / 0.5473 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000311/0.4196, allocations: 25.05 kB / 0.5474 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.008e-05/0.4197, allocations: 34.73 kB / 0.5474 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.4197, allocations: 16 kB / 0.5474 GB, free: 10.36 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005057/0.4202, allocations: 419 kB / 0.5478 GB, free: 9.953 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4202, allocations: 4 kB / 0.5478 GB, free: 9.949 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000867/0.4211, allocations: 231.9 kB / 0.548 GB, free: 9.723 MB / 414.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001751/0.4228, allocations: 1.531 MB / 0.5495 GB, free: 8.148 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001678/0.4245, allocations: 1.037 MB / 0.5506 GB, free: 7.074 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.4245, allocations: 0 / 0.5506 GB, free: 7.074 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003718/0.4249, allocations: 263.6 kB / 0.5508 GB, free: 6.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007703/0.4257, allocations: 148.2 kB / 0.5509 GB, free: 6.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009959/0.4357, allocations: 7.342 MB / 0.5581 GB, free: 14.98 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00082/0.4365, allocations: 1.082 MB / 0.5592 GB, free: 13.87 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005123/0.437, allocations: 189.9 kB / 0.5594 GB, free: 13.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004634/0.4375, allocations: 331.3 kB / 0.5597 GB, free: 13.36 MB / 430.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4375, allocations: 0 / 0.5597 GB, free: 13.36 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08849/0.526, allocations: 16.73 MB / 0.576 GB, free: 12.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.65, allocations: 4.062 kB / 0.576 GB, free: 12.79 MB / 446.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/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)