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.001062/0.001062, 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.001124/0.001124, 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.32/1.32, 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.1862/0.1862, 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.001426/0.001426, allocations: 67.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1031, allocations: 55.24 MB / 486.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01056/0.1137, allocations: 9.553 MB / 496.2 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00562/0.1194, allocations: 3.611 MB / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007148/0.1201, allocations: 35.81 kB / 499.8 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002822/0.123, allocations: 1.097 MB / 0.4892 GB, free: 10.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.002203/0.1252, allocations: 0.8904 MB / 0.49 GB, free: 9.582 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.1265, allocations: 482.9 kB / 0.4905 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002115/0.1286, allocations: 1.804 MB / 0.4923 GB, free: 7.301 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.1299, allocations: 0.9699 MB / 0.4932 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001365/0.1313, allocations: 0.7744 MB / 0.494 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00154/0.1328, allocations: 0.9032 MB / 0.4949 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002826/0.1331, allocations: 104 kB / 0.495 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00104/0.1342, allocations: 0.546 MB / 0.4955 GB, free: 3.977 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006543/0.1348, allocations: 0.6352 MB / 0.4961 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00105/0.1359, allocations: 0.6997 MB / 0.4968 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00233/0.1382, allocations: 1.9 MB / 0.4986 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1382, allocations: 0 / 0.4986 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1383, allocations: 0 / 0.4986 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.14e-05/0.1383, allocations: 0 / 0.4986 GB, free: 0.7305 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.003256/0.1416, allocations: 1.629 MB / 0.5002 GB, free: 15.04 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.1416, allocations: 15.89 kB / 0.5003 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001902/0.1418, allocations: 181.6 kB / 0.5004 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001545/0.1434, allocations: 263.1 kB / 0.5007 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001859/0.1452, allocations: 0.9526 MB / 0.5016 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.134e-05/0.1453, allocations: 82.09 kB / 0.5017 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002734/0.1456, allocations: 131.9 kB / 0.5018 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002031/0.1476, allocations: 1.497 MB / 0.5033 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.145e-05/0.1477, allocations: 0 / 0.5033 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.371e-05/0.1478, allocations: 44 kB / 0.5033 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002892/0.1481, allocations: 98.16 kB / 0.5034 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001845/0.1499, allocations: 1.258 MB / 0.5046 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007234/0.1572, allocations: 5.629 MB / 0.5101 GB, free: 4.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008291/0.158, allocations: 0.5899 MB / 0.5107 GB, free: 3.824 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005307/0.1586, allocations: 403.1 kB / 0.5111 GB, free: 3.426 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.778e-05/0.1586, allocations: 16.56 kB / 0.5111 GB, free: 3.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.357e-05/0.1587, allocations: 39.12 kB / 0.5111 GB, free: 3.359 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.735e-06/0.1587, allocations: 0 / 0.5111 GB, free: 3.359 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.007007/0.1657, allocations: 3.634 MB / 0.5147 GB, free: 15.57 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.1657, allocations: 89.75 kB / 0.5148 GB, free: 15.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008909/0.1666, allocations: 0.7312 MB / 0.5155 GB, free: 14.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.1667, allocations: 41.7 kB / 0.5155 GB, free: 14.67 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003761/0.1671, allocations: 0.588 MB / 0.5161 GB, free: 14.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002054/0.1673, allocations: 272.1 kB / 0.5164 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002534/0.1676, allocations: 182.5 kB / 0.5165 GB, free: 13.62 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1677, allocations: 402.7 kB / 0.5169 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005681/0.1683, allocations: 393.8 kB / 0.5173 GB, free: 12.83 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007442/0.1691, allocations: 0.6574 MB / 0.5179 GB, free: 12.05 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.1705, allocations: 1.152 MB / 0.5191 GB, free: 10.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.1705, allocations: 4 kB / 0.5191 GB, free: 10.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003219/0.1737, allocations: 1.709 MB / 0.5207 GB, free: 9.047 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.1738, allocations: 8.281 kB / 0.5207 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002582/0.1764, allocations: 1.309 MB / 0.522 GB, free: 7.723 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001832/0.1782, allocations: 0.5886 MB / 0.5226 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005988/0.1788, allocations: 171.7 kB / 0.5228 GB, free: 6.953 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2118/0.3906, allocations: 10.34 MB / 0.5329 GB, free: 48.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008099/0.3915, allocations: 46.23 kB / 0.5329 GB, free: 48.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.595e-05/0.3916, allocations: 42.7 kB / 0.5329 GB, free: 48.16 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.0005516/0.3921, allocations: 384.5 kB / 0.5333 GB, free: 48.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001344/0.3923, allocations: 91.88 kB / 0.5334 GB, free: 48.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002182/0.3944, allocations: 1.242 MB / 0.5346 GB, free: 47.65 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.3945, allocations: 9.25 kB / 0.5346 GB, free: 47.65 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.3945, allocations: 5.906 kB / 0.5346 GB, free: 47.65 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.3945, allocations: 4.5 kB / 0.5346 GB, free: 47.65 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004134/0.3986, allocations: 2.4 MB / 0.537 GB, free: 46.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.3987, allocations: 3.984 kB / 0.537 GB, free: 46.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004723/0.3991, allocations: 109.6 kB / 0.5371 GB, free: 46.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001083/0.4002, allocations: 383.2 kB / 0.5375 GB, free: 46.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-05/0.4003, allocations: 28.19 kB / 0.5375 GB, free: 46.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007099/0.4074, allocations: 9.284 MB / 0.5465 GB, free: 38.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.4074, allocations: 2.281 kB / 0.5465 GB, free: 38.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003214/0.4107, allocations: 1.69 MB / 0.5482 GB, free: 37.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005195/0.4112, allocations: 228.7 kB / 0.5484 GB, free: 37.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001179/0.4113, allocations: 23.16 kB / 0.5484 GB, free: 37.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004376/0.4118, allocations: 29.47 kB / 0.5485 GB, free: 37.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.4119, allocations: 60 kB / 0.5485 GB, free: 37.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.413e-05/0.412, allocations: 26.59 kB / 0.5485 GB, free: 37.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007934/0.4128, allocations: 0.5038 MB / 0.549 GB, free: 37.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.142e-06/0.4128, allocations: 0.875 kB / 0.549 GB, free: 37.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001663/0.4145, allocations: 366.9 kB / 0.5494 GB, free: 37.35 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.002864/0.4174, allocations: 2.278 MB / 0.5516 GB, free: 36.03 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002292/0.4197, allocations: 1.575 MB / 0.5532 GB, free: 35.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4197, allocations: 4.469 kB / 0.5532 GB, free: 35.21 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00141/0.4211, allocations: 1.093 MB / 0.5542 GB, free: 34.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.4221, allocations: 211.8 kB / 0.5544 GB, free: 34.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01244/0.4346, allocations: 9.892 MB / 0.5641 GB, free: 29.26 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006371/0.4352, allocations: 1.257 MB / 0.5653 GB, free: 28.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005237/0.4358, allocations: 221.9 kB / 0.5655 GB, free: 28.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004029/0.4362, allocations: 441.2 kB / 0.5659 GB, free: 27.8 MB / 414.1 MB Notification: Performance of SimCode: time 1.213e-06/0.4362, allocations: 96 / 0.5659 GB, free: 27.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05543/0.4916, allocations: 25.5 MB / 0.5908 GB, free: 2.418 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.22, allocations: 11.69 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)