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.0008944/0.0008945, allocations: 96.52 kB / 16.3 MB, free: 6.461 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.001015/0.001015, allocations: 183.2 kB / 17.2 MB, free: 6.348 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.365/1.365, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1882/0.1882, allocations: 38.04 MB / 309.7 MB, free: 6.137 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.0005143/0.0005145, allocations: 16 kB / 376.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2518, allocations: 56.33 MB / 432.9 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.007513/0.2593, allocations: 9.545 MB / 442.5 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00559/0.265, allocations: 3.852 MB / 446.3 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001293/0.2663, allocations: 59.62 kB / 446.4 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008731/0.2672, allocations: 326.1 kB / 446.7 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002429/0.2696, allocations: 0.7243 MB / 447.4 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001451/0.2711, allocations: 471 kB / 447.9 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001432/0.2725, allocations: 0.9288 MB / 448.8 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001921/0.2745, allocations: 1.317 MB / 450.1 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007976/0.2753, allocations: 0.5177 MB / 450.6 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000646/0.2759, allocations: 0.5685 MB / 451.2 MB, free: 456 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.225e-05/0.276, allocations: 52 kB / 451.3 MB, free: 404 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007147/0.2768, allocations: 403.3 kB / 451.6 MB, free: 0 / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005066/0.2773, allocations: 0.53 MB / 452.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003022/0.2776, allocations: 269 kB / 452.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001549/0.2792, allocations: 1.422 MB / 453.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2792, allocations: 4 kB / 453.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2792, allocations: 0 / 453.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.139e-05/0.2792, allocations: 0 / 453.9 MB, free: 13.77 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: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.002639/0.2819, allocations: 1.403 MB / 455.3 MB, free: 12.31 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.2819, allocations: 12.03 kB / 455.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002228/0.2821, allocations: 173.5 kB / 455.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001593/0.2837, allocations: 290.1 kB / 455.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001896/0.2856, allocations: 0.8782 MB / 456.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.17e-05/0.2857, allocations: 86.05 kB / 456.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003129/0.286, allocations: 135.9 kB / 456.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002207/0.2883, allocations: 1.466 MB / 458.3 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.054e-05/0.2883, allocations: 11.84 kB / 458.3 MB, free: 9.148 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/0.2884, allocations: 40 kB / 458.3 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003042/0.2887, allocations: 102.1 kB / 458.4 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001957/0.2907, allocations: 1.242 MB / 459.7 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007802/0.2985, allocations: 5.668 MB / 465.4 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008931/0.2995, allocations: 0.5976 MB / 465.9 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.925e-05/0.2995, allocations: 12.61 kB / 466 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.2996, allocations: 39.12 kB / 466 MB, free: 1.074 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 3.486e-06/0.2996, allocations: 0 / 466 MB, free: 1.074 MB / 334.1 MB Notification: Performance of matching and sorting (n=74): time 0.006755/0.3063, allocations: 3.533 MB / 469.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.511e-05/0.3064, allocations: 93.72 kB / 469.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/0.3076, allocations: 0.7196 MB / 470.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.767e-05/0.3077, allocations: 41.7 kB / 470.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003976/0.3081, allocations: 0.5918 MB / 471 MB, free: 11.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000208/0.3083, allocations: 268.1 kB / 471.2 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.112e-05/0.3084, allocations: 20 kB / 471.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.3086, allocations: 406.8 kB / 471.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006108/0.3092, allocations: 381.8 kB / 472 MB, free: 10.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007875/0.31, allocations: 0.6574 MB / 472.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007606/0.3108, allocations: 0.4987 MB / 473.2 MB, free: 9.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.3108, allocations: 8 kB / 473.2 MB, free: 9.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00312/0.3139, allocations: 1.686 MB / 474.9 MB, free: 7.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.314, allocations: 16.23 kB / 474.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00253/0.3165, allocations: 1.295 MB / 476.2 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001791/0.3183, allocations: 0.5735 MB / 476.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006121/0.3189, allocations: 179.7 kB / 476.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01055/0.3295, allocations: 9.616 MB / 486.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008438/0.3304, allocations: 47.88 kB / 486.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.517e-05/0.3305, allocations: 43.98 kB / 486.6 MB, free: 11.51 MB / 366.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 (94): * Single equations (assignments): 90 * 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%) 3,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {3 16} Notification: Performance of prepare postOptimizeDAE: time 0.0006177/0.3311, allocations: 389.3 kB / 487 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.3312, allocations: 90.88 kB / 487.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002073/0.3333, allocations: 1.256 MB / 488.4 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.3333, allocations: 8 kB / 488.4 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.3333, allocations: 4 kB / 488.4 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.3333, allocations: 7.938 kB / 488.4 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003842/0.3372, allocations: 2.393 MB / 490.8 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.3372, allocations: 4 kB / 490.8 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004405/0.3377, allocations: 107.9 kB / 490.9 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.3387, allocations: 379.8 kB / 491.3 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.848e-05/0.3388, allocations: 19.98 kB / 491.3 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007016/0.3458, allocations: 8.576 MB / 499.9 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/0.3458, allocations: 7.969 kB / 499.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002476/0.3483, allocations: 1.753 MB / 0.4899 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004223/0.3488, allocations: 239.7 kB / 0.4901 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.3489, allocations: 24.11 kB / 0.4901 GB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004146/0.3493, allocations: 27.91 kB / 0.4901 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.3494, allocations: 72.36 kB / 0.4902 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.37e-05/0.3495, allocations: 20 kB / 0.4902 GB, free: 11.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006146/0.3501, allocations: 0.499 MB / 0.4907 GB, free: 10.72 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3501, allocations: 4 kB / 0.4907 GB, free: 10.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001316/0.3514, allocations: 364 kB / 0.4911 GB, free: 10.36 MB / 382.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.003285/0.3547, allocations: 2.914 MB / 0.4939 GB, free: 7.344 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002475/0.3572, allocations: 1.568 MB / 0.4954 GB, free: 5.723 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3572, allocations: 0 / 0.4954 GB, free: 5.723 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001554/0.3588, allocations: 1.091 MB / 0.4965 GB, free: 4.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008755/0.3597, allocations: 179.2 kB / 0.4967 GB, free: 4.398 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01284/0.3725, allocations: 13.37 MB / 0.5097 GB, free: 6.641 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009108/0.3735, allocations: 1.282 MB / 0.511 GB, free: 5.328 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006216/0.3741, allocations: 215.6 kB / 0.5112 GB, free: 5.113 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004948/0.3746, allocations: 451.3 kB / 0.5116 GB, free: 4.672 MB / 398.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3746, allocations: 0 / 0.5116 GB, free: 4.672 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2409/0.6155, allocations: 23.48 MB / 0.5346 GB, free: 76.36 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/0.6157, allocations: 223.3 kB / 0.5348 GB, free: 76.11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.318/2.934, allocations: 4 kB / 0.5348 GB, free: 76.11 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: