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.001144/0.001144, allocations: 111.9 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.001294/0.001295, allocations: 198.9 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.33/1.33, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1721/0.1721, 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.001481/0.001481, allocations: 67.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09517/0.09667, allocations: 55.24 MB / 486.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.008904/0.1056, allocations: 7.524 MB / 494.1 MB, free: 1.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00521/0.1109, allocations: 3.019 MB / 497.2 MB, free: 14.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007496/0.1117, allocations: 27.88 kB / 497.2 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002151/0.1139, allocations: 0.7389 MB / 497.9 MB, free: 13.47 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.001851/0.1157, allocations: 0.6842 MB / 498.6 MB, free: 12.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.1168, allocations: 379.2 kB / 499 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001934/0.1187, allocations: 1.344 MB / 0.4886 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001044/0.1198, allocations: 0.7208 MB / 0.4893 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000894/0.1207, allocations: 0.5643 MB / 0.4899 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001011/0.1217, allocations: 0.6228 MB / 0.4905 GB, free: 9.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001822/0.1219, allocations: 80 kB / 0.4905 GB, free: 9.062 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008895/0.1228, allocations: 471.2 kB / 0.491 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000436/0.1233, allocations: 454.8 kB / 0.4914 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006943/0.124, allocations: 0.5054 MB / 0.4919 GB, free: 7.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001777/0.1258, allocations: 1.421 MB / 0.4933 GB, free: 6.223 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.052e-05/0.1258, allocations: 3.984 kB / 0.4933 GB, free: 6.219 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1258, allocations: 3.938 kB / 0.4933 GB, free: 6.215 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.331e-05/0.1259, allocations: 0 / 0.4933 GB, free: 6.215 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.002689/0.1286, allocations: 1.277 MB / 0.4946 GB, free: 4.883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1286, allocations: 11.89 kB / 0.4946 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001778/0.1288, allocations: 143.6 kB / 0.4947 GB, free: 4.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001282/0.1301, allocations: 207.5 kB / 0.4949 GB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001739/0.1318, allocations: 0.741 MB / 0.4956 GB, free: 3.742 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.106e-05/0.1319, allocations: 66.12 kB / 0.4957 GB, free: 3.676 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002473/0.1322, allocations: 95.97 kB / 0.4958 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001627/0.1338, allocations: 1.096 MB / 0.4969 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.377e-05/0.1339, allocations: 7.938 kB / 0.4969 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.395e-05/0.1339, allocations: 35.98 kB / 0.4969 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001666/0.1341, allocations: 77.94 kB / 0.497 GB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0014/0.1355, allocations: 0.8704 MB / 0.4978 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0056/0.1411, allocations: 3.973 MB / 0.5017 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006105/0.1418, allocations: 431.8 kB / 0.5021 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003713/0.1422, allocations: 287 kB / 0.5024 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.161e-05/0.1422, allocations: 8.422 kB / 0.5024 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.1422, allocations: 42.94 kB / 0.5024 GB, free: 12.47 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.745e-06/0.1422, allocations: 0 / 0.5024 GB, free: 12.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.002878/0.1451, allocations: 1.721 MB / 0.5041 GB, free: 10.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.19e-05/0.1452, allocations: 85.48 kB / 0.5042 GB, free: 10.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00064/0.1458, allocations: 0.5821 MB / 0.5048 GB, free: 10 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.854e-05/0.1459, allocations: 37.7 kB / 0.5048 GB, free: 9.961 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002786/0.1462, allocations: 466.5 kB / 0.5052 GB, free: 9.496 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001388/0.1463, allocations: 189.5 kB / 0.5054 GB, free: 9.309 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.1465, allocations: 142.5 kB / 0.5056 GB, free: 9.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.1467, allocations: 382.8 kB / 0.5059 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003745/0.1471, allocations: 249.8 kB / 0.5062 GB, free: 8.535 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004815/0.1476, allocations: 477 kB / 0.5066 GB, free: 7.977 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009579/0.1485, allocations: 0.7703 MB / 0.5074 GB, free: 7.113 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-06/0.1485, allocations: 4 kB / 0.5074 GB, free: 7.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001922/0.1505, allocations: 1.114 MB / 0.5085 GB, free: 5.961 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.1505, allocations: 8.344 kB / 0.5085 GB, free: 5.953 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001337/0.1518, allocations: 0.7988 MB / 0.5093 GB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000732/0.1526, allocations: 230.3 kB / 0.5095 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005216/0.1531, allocations: 147.8 kB / 0.5096 GB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005477/0.1586, allocations: 5.673 MB / 0.5152 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005388/0.1592, allocations: 39.97 kB / 0.5152 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-05/0.1593, allocations: 35.98 kB / 0.5152 GB, free: 14.57 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.0004473/0.1597, allocations: 297.5 kB / 0.5155 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.1599, allocations: 75.14 kB / 0.5156 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009643/0.1609, allocations: 0.6085 MB / 0.5162 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1609, allocations: 4 kB / 0.5162 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.1609, allocations: 0 / 0.5162 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.1609, allocations: 7.984 kB / 0.5162 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/0.1635, allocations: 1.486 MB / 0.5176 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.1635, allocations: 0 / 0.5176 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006266/0.1641, allocations: 123.8 kB / 0.5178 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.1641, allocations: 7.938 kB / 0.5178 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.417e-05/0.1642, allocations: 24.14 kB / 0.5178 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.441e-06/0.1642, allocations: 4 kB / 0.5178 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.1642, allocations: 0 / 0.5178 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.1653, allocations: 0.9282 MB / 0.5187 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003244/0.1657, allocations: 184.2 kB / 0.5189 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.1658, allocations: 16.27 kB / 0.5189 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003376/0.1662, allocations: 23.98 kB / 0.5189 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.381e-05/0.1662, allocations: 36.33 kB / 0.5189 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.923e-05/0.1663, allocations: 15.94 kB / 0.519 GB, free: 10.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004991/0.1668, allocations: 419 kB / 0.5194 GB, free: 10.19 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.1668, allocations: 4 kB / 0.5194 GB, free: 10.19 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009145/0.1677, allocations: 232 kB / 0.5196 GB, free: 9.961 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.001698/0.1694, allocations: 1.503 MB / 0.5211 GB, free: 8.414 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.171, allocations: 1.042 MB / 0.5221 GB, free: 7.328 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.171, allocations: 4.188 kB / 0.5221 GB, free: 7.324 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003496/0.1714, allocations: 274.2 kB / 0.5223 GB, free: 7.055 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008431/0.1723, allocations: 155.5 kB / 0.5225 GB, free: 6.902 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1991/0.3713, allocations: 7.288 MB / 0.5296 GB, free: 49.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006115/0.372, allocations: 1.076 MB / 0.5307 GB, free: 49.14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005539/0.3725, allocations: 196 kB / 0.5308 GB, free: 49.13 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004011/0.373, allocations: 328.1 kB / 0.5312 GB, free: 49.13 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.373, allocations: 0 / 0.5312 GB, free: 49.13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04779/0.4208, allocations: 17.01 MB / 0.5478 GB, free: 44.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.66, allocations: 7.922 kB / 0.5478 GB, free: 44.22 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)