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.001098/0.001098, allocations: 106.3 kB / 17.06 MB, free: 6.023 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.001159/0.001159, allocations: 195 kB / 18 MB, free: 5.105 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.34/1.34, 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.172/0.172, allocations: 37.98 MB / 309.2 MB, free: 5.965 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.001534/0.001534, allocations: 71.89 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1091, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.009672/0.1188, allocations: 7.52 MB / 494.1 MB, free: 1.289 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005125/0.124, allocations: 3.022 MB / 497.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006451/0.1246, allocations: 27.88 kB / 497.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.1268, allocations: 0.7388 MB / 497.9 MB, free: 13.48 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.00184/0.1286, allocations: 0.6882 MB / 498.6 MB, free: 12.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.1297, allocations: 375.2 kB / 499 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001854/0.1315, allocations: 1.348 MB / 0.4886 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001023/0.1326, allocations: 0.7169 MB / 0.4893 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009286/0.1335, allocations: 0.5643 MB / 0.4899 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001093/0.1346, allocations: 0.6229 MB / 0.4905 GB, free: 9.156 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001728/0.1348, allocations: 72 kB / 0.4905 GB, free: 9.086 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008887/0.1357, allocations: 483.1 kB / 0.491 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004886/0.1362, allocations: 450.9 kB / 0.4914 GB, free: 8.172 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000765/0.137, allocations: 0.5132 MB / 0.4919 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002086/0.1391, allocations: 1.425 MB / 0.4933 GB, free: 6.227 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.1391, allocations: 4 kB / 0.4933 GB, free: 6.223 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1391, allocations: 0 / 0.4933 GB, free: 6.223 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.136e-05/0.1392, allocations: 0 / 0.4933 GB, free: 6.223 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.003068/0.1422, allocations: 1.273 MB / 0.4946 GB, free: 4.895 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.1423, allocations: 15.89 kB / 0.4946 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002251/0.1425, allocations: 139.6 kB / 0.4947 GB, free: 4.734 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001295/0.1438, allocations: 207.5 kB / 0.4949 GB, free: 4.531 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001541/0.1454, allocations: 0.741 MB / 0.4956 GB, free: 3.754 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.715e-05/0.1455, allocations: 62.12 kB / 0.4957 GB, free: 3.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002426/0.1457, allocations: 95.97 kB / 0.4958 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.1474, allocations: 1.1 MB / 0.4969 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.374e-05/0.1474, allocations: 4 kB / 0.4969 GB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.079e-05/0.1475, allocations: 35.94 kB / 0.4969 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001824/0.1477, allocations: 73.95 kB / 0.497 GB, free: 2.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.1491, allocations: 0.8665 MB / 0.4978 GB, free: 1.477 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005168/0.1543, allocations: 3.981 MB / 0.5017 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006266/0.155, allocations: 435.8 kB / 0.5021 GB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003801/0.1553, allocations: 279 kB / 0.5024 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.876e-05/0.1554, allocations: 8.422 kB / 0.5024 GB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.1554, allocations: 54.86 kB / 0.5024 GB, free: 12.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 3.096e-06/0.1554, allocations: 0 / 0.5024 GB, free: 12.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.002944/0.1584, allocations: 1.713 MB / 0.5041 GB, free: 10.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.1585, allocations: 85.55 kB / 0.5042 GB, free: 10.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006615/0.1591, allocations: 0.586 MB / 0.5048 GB, free: 10.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.834e-05/0.1592, allocations: 33.7 kB / 0.5048 GB, free: 9.977 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003096/0.1595, allocations: 470.5 kB / 0.5052 GB, free: 9.508 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.1597, allocations: 181.4 kB / 0.5054 GB, free: 9.328 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000195/0.1599, allocations: 146.5 kB / 0.5056 GB, free: 9.176 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.16, allocations: 374.8 kB / 0.5059 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003692/0.1604, allocations: 257.9 kB / 0.5062 GB, free: 8.551 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005301/0.1609, allocations: 480.9 kB / 0.5066 GB, free: 7.988 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009821/0.1619, allocations: 0.7702 MB / 0.5074 GB, free: 7.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.1619, allocations: 4 kB / 0.5074 GB, free: 7.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002142/0.1641, allocations: 1.111 MB / 0.5085 GB, free: 5.977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.1641, allocations: 8 kB / 0.5085 GB, free: 5.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001309/0.1654, allocations: 0.7953 MB / 0.5092 GB, free: 5.145 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007292/0.1662, allocations: 222.3 kB / 0.5095 GB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005209/0.1667, allocations: 151.8 kB / 0.5096 GB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005619/0.1724, allocations: 5.677 MB / 0.5151 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005362/0.1729, allocations: 44.12 kB / 0.5152 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.541e-05/0.173, allocations: 28 kB / 0.5152 GB, free: 14.59 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.0004249/0.1734, allocations: 313.4 kB / 0.5155 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.1735, allocations: 67.16 kB / 0.5156 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009455/0.1745, allocations: 0.6008 MB / 0.5162 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.1745, allocations: 12 kB / 0.5162 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.1745, allocations: 0 / 0.5162 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.1745, allocations: 3.984 kB / 0.5162 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002221/0.1767, allocations: 1.49 MB / 0.5176 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.1768, allocations: 4 kB / 0.5176 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006038/0.1774, allocations: 123.9 kB / 0.5178 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.1774, allocations: 7.938 kB / 0.5178 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.853e-05/0.1774, allocations: 16 kB / 0.5178 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.1775, allocations: 4 kB / 0.5178 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.1775, allocations: 3.938 kB / 0.5178 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.1786, allocations: 0.9323 MB / 0.5187 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000225/0.1788, allocations: 184.1 kB / 0.5189 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.819e-05/0.1789, allocations: 16 kB / 0.5189 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003126/0.1793, allocations: 20.27 kB / 0.5189 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.03e-05/0.1793, allocations: 36.33 kB / 0.5189 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.1794, allocations: 16 kB / 0.519 GB, free: 10.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000449/0.1798, allocations: 423 kB / 0.5194 GB, free: 10.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1798, allocations: 0 / 0.5194 GB, free: 10.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007737/0.1806, allocations: 232 kB / 0.5196 GB, free: 9.977 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.001569/0.1822, allocations: 1.508 MB / 0.5211 GB, free: 8.426 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.1838, allocations: 1.041 MB / 0.5221 GB, free: 7.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.1838, allocations: 5.25 kB / 0.5221 GB, free: 7.336 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003482/0.1841, allocations: 266.6 kB / 0.5223 GB, free: 7.074 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007686/0.1849, allocations: 158.9 kB / 0.5225 GB, free: 6.918 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2219/0.4069, allocations: 7.281 MB / 0.5296 GB, free: 49.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006987/0.4076, allocations: 1.078 MB / 0.5306 GB, free: 49.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006284/0.4083, allocations: 191.1 kB / 0.5308 GB, free: 49.08 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003862/0.4086, allocations: 329.9 kB / 0.5311 GB, free: 49.08 MB / 414.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4087, allocations: 0 / 0.5311 GB, free: 49.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05234/0.461, allocations: 17.02 MB / 0.5478 GB, free: 44.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.71, allocations: 15.94 kB / 0.5478 GB, free: 44.18 MB / 414.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)