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.00167/0.001671, allocations: 112.8 kB / 17.06 MB, free: 6.004 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.001888/0.001889, allocations: 200 kB / 18 MB, free: 5.082 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.423/1.423, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.17/0.17, allocations: 37.99 MB / 309.2 MB, free: 5.949 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.0014/0.0014, allocations: 59.91 kB / 431.4 MB, free: 16.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.107, allocations: 55.24 MB / 486.6 MB, free: 8.82 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.0119/0.1189, allocations: 9.549 MB / 496.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00637/0.1253, allocations: 3.615 MB / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009847/0.1263, allocations: 35.75 kB / 499.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003209/0.1296, allocations: 1.105 MB / 0.4892 GB, free: 10.46 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.002721/0.1324, allocations: 0.8904 MB / 0.49 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001436/0.1338, allocations: 475 kB / 0.4905 GB, free: 9.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003299/0.1371, allocations: 1.8 MB / 0.4923 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001702/0.1388, allocations: 0.9738 MB / 0.4932 GB, free: 6.297 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001461/0.1403, allocations: 0.7743 MB / 0.494 GB, free: 5.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001606/0.1419, allocations: 0.8994 MB / 0.4948 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003435/0.1423, allocations: 108 kB / 0.4949 GB, free: 4.512 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001262/0.1436, allocations: 0.5381 MB / 0.4955 GB, free: 3.973 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008137/0.1444, allocations: 0.639 MB / 0.4961 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001263/0.1457, allocations: 0.7076 MB / 0.4968 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00268/0.1484, allocations: 1.9 MB / 0.4986 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1484, allocations: 0 / 0.4986 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1484, allocations: 3.938 kB / 0.4986 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.025e-05/0.1485, allocations: 0 / 0.4986 GB, free: 0.7109 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.003739/0.1522, allocations: 1.625 MB / 0.5002 GB, free: 15.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.1523, allocations: 11.89 kB / 0.5002 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003261/0.1526, allocations: 177.6 kB / 0.5004 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001731/0.1544, allocations: 279 kB / 0.5007 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002041/0.1564, allocations: 0.9409 MB / 0.5016 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.898e-05/0.1565, allocations: 86.08 kB / 0.5017 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000373/0.1569, allocations: 131.9 kB / 0.5018 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002611/0.1595, allocations: 1.489 MB / 0.5033 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.832e-05/0.1596, allocations: 15.92 kB / 0.5033 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001152/0.1597, allocations: 36 kB / 0.5033 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002926/0.16, allocations: 94.17 kB / 0.5034 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002197/0.1622, allocations: 1.265 MB / 0.5046 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008559/0.1708, allocations: 5.625 MB / 0.5101 GB, free: 4.414 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.1718, allocations: 0.5899 MB / 0.5107 GB, free: 3.809 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005467/0.1724, allocations: 403.2 kB / 0.5111 GB, free: 3.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.03e-05/0.1724, allocations: 12.55 kB / 0.5111 GB, free: 3.398 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.603e-05/0.1725, allocations: 39.12 kB / 0.5111 GB, free: 3.348 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.234e-06/0.1725, allocations: 3.938 kB / 0.5111 GB, free: 3.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.007677/0.1802, allocations: 3.634 MB / 0.5147 GB, free: 15.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/0.1803, allocations: 89.7 kB / 0.5148 GB, free: 15.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/0.1813, allocations: 0.739 MB / 0.5155 GB, free: 14.69 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.142e-05/0.1814, allocations: 37.7 kB / 0.5155 GB, free: 14.65 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004549/0.1819, allocations: 0.588 MB / 0.5161 GB, free: 14.05 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002732/0.1822, allocations: 272.1 kB / 0.5164 GB, free: 13.78 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002895/0.1824, allocations: 178.6 kB / 0.5165 GB, free: 13.6 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.1827, allocations: 402.7 kB / 0.5169 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006346/0.1833, allocations: 385.8 kB / 0.5173 GB, free: 12.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007658/0.1841, allocations: 0.6652 MB / 0.5179 GB, free: 12.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.1855, allocations: 1.144 MB / 0.5191 GB, free: 10.78 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.1855, allocations: 4 kB / 0.5191 GB, free: 10.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003455/0.189, allocations: 1.709 MB / 0.5207 GB, free: 9.039 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.189, allocations: 12 kB / 0.5207 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002593/0.1916, allocations: 1.313 MB / 0.522 GB, free: 7.707 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001856/0.1935, allocations: 0.5847 MB / 0.5226 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006004/0.1941, allocations: 171.7 kB / 0.5228 GB, free: 6.941 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2411/0.4353, allocations: 10.34 MB / 0.5329 GB, free: 48.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007802/0.4361, allocations: 47.12 kB / 0.5329 GB, free: 48.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.611e-05/0.4362, allocations: 40.95 kB / 0.5329 GB, free: 48.15 MB / 414.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0005623/0.4367, allocations: 380 kB / 0.5333 GB, free: 48.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.4369, allocations: 91.17 kB / 0.5334 GB, free: 48.04 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002211/0.4391, allocations: 1.253 MB / 0.5346 GB, free: 47.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.4391, allocations: 8.656 kB / 0.5346 GB, free: 47.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.4391, allocations: 4.781 kB / 0.5346 GB, free: 47.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.4392, allocations: 3.984 kB / 0.5346 GB, free: 47.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004248/0.4434, allocations: 2.4 MB / 0.537 GB, free: 46.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.4434, allocations: 1.281 kB / 0.537 GB, free: 46.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004502/0.4439, allocations: 107.4 kB / 0.5371 GB, free: 46.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001005/0.4449, allocations: 378 kB / 0.5374 GB, free: 46.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.893e-05/0.445, allocations: 27.41 kB / 0.5375 GB, free: 46.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006844/0.4518, allocations: 9.286 MB / 0.5465 GB, free: 38.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/0.4518, allocations: 3.562 kB / 0.5465 GB, free: 38.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003272/0.4551, allocations: 1.686 MB / 0.5482 GB, free: 37.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004898/0.4556, allocations: 230.4 kB / 0.5484 GB, free: 37.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.4558, allocations: 27.06 kB / 0.5484 GB, free: 37.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004324/0.4562, allocations: 25.38 kB / 0.5485 GB, free: 37.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.4564, allocations: 68.11 kB / 0.5485 GB, free: 37.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.112e-05/0.4564, allocations: 26.98 kB / 0.5485 GB, free: 37.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007451/0.4572, allocations: 0.5043 MB / 0.549 GB, free: 37.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4572, allocations: 0 / 0.549 GB, free: 37.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001391/0.4586, allocations: 365 kB / 0.5494 GB, free: 37.31 MB / 414.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 (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,10,100.0%), (1,3,100.0%), (1,3,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002918/0.4615, allocations: 2.269 MB / 0.5516 GB, free: 35.99 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002252/0.4638, allocations: 1.582 MB / 0.5532 GB, free: 35.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.4638, allocations: 1.5 kB / 0.5532 GB, free: 35.16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001327/0.4651, allocations: 1.091 MB / 0.5542 GB, free: 34.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009943/0.4661, allocations: 209.9 kB / 0.5544 GB, free: 34.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01225/0.4784, allocations: 9.907 MB / 0.5641 GB, free: 29.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006319/0.4791, allocations: 1.25 MB / 0.5653 GB, free: 28.25 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005046/0.4796, allocations: 224 kB / 0.5655 GB, free: 28.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003902/0.48, allocations: 438.5 kB / 0.5659 GB, free: 27.77 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.48, allocations: 0 / 0.5659 GB, free: 27.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05606/0.536, allocations: 25.5 MB / 0.5909 GB, free: 2.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.38, allocations: 3.75 kB / 0.5909 GB, free: 2.406 MB / 414.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/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)