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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001581/0.001581, allocations: 107.7 kB / 16.92 MB, free: 6.145 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.001966/0.001966, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1772/0.1772, allocations: 38.03 MB / 329.7 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 72.16 kB / 398.9 MB, free: 33.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09357/0.0948, allocations: 58.06 MB / 457 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01043/0.1053, allocations: 9.544 MB / 466.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005141/0.1104, allocations: 3.564 MB / 470.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006226/0.1111, allocations: 35.81 kB / 470.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002504/0.1136, allocations: 1.098 MB / 471.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002004/0.1156, allocations: 0.9019 MB / 472.1 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001104/0.1168, allocations: 475 kB / 472.6 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001984/0.1188, allocations: 1.804 MB / 474.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00117/0.1199, allocations: 0.9739 MB / 475.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001056/0.121, allocations: 0.7549 MB / 476.1 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001239/0.1223, allocations: 0.9071 MB / 477 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000238/0.1225, allocations: 104 kB / 477.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009586/0.1235, allocations: 0.5303 MB / 477.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006096/0.1241, allocations: 0.643 MB / 478.3 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009577/0.1251, allocations: 0.7075 MB / 479 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001961/0.127, allocations: 1.881 MB / 480.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.127, allocations: 0 / 480.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1271, allocations: 0 / 480.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.582e-05/0.1271, allocations: 4 kB / 480.9 MB, free: 15.91 MB / 366.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.002902/0.13, allocations: 1.621 MB / 482.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.1301, allocations: 19.89 kB / 482.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001797/0.1303, allocations: 177.6 kB / 482.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001496/0.1318, allocations: 267 kB / 483 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001499/0.1333, allocations: 0.9099 MB / 483.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.356e-05/0.1333, allocations: 78.11 kB / 483.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002646/0.1336, allocations: 135.8 kB / 484.1 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001906/0.1355, allocations: 1.493 MB / 485.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.877e-05/0.1356, allocations: 4 kB / 485.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.319e-05/0.1357, allocations: 43.98 kB / 485.6 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002855/0.136, allocations: 98.16 kB / 485.7 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/0.1377, allocations: 1.258 MB / 487 MB, free: 9.637 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006343/0.1441, allocations: 5.668 MB / 492.6 MB, free: 3.621 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007757/0.1448, allocations: 0.5903 MB / 493.2 MB, free: 3.012 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004834/0.1453, allocations: 407.3 kB / 493.6 MB, free: 2.609 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.686e-05/0.1454, allocations: 12.55 kB / 493.6 MB, free: 2.598 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.1454, allocations: 43.12 kB / 493.7 MB, free: 2.543 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 1.824e-06/0.1454, allocations: 0 / 493.7 MB, free: 2.543 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.007146/0.1526, allocations: 3.63 MB / 497.3 MB, free: 14.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.066e-05/0.1527, allocations: 93.69 kB / 497.4 MB, free: 14.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008764/0.1536, allocations: 0.7274 MB / 498.1 MB, free: 13.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.261e-05/0.1536, allocations: 41.7 kB / 498.2 MB, free: 13.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004102/0.154, allocations: 0.5996 MB / 498.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002181/0.1543, allocations: 268.1 kB / 499 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002791/0.1546, allocations: 186.4 kB / 499.2 MB, free: 12.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000257/0.1548, allocations: 402.7 kB / 499.6 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005927/0.1554, allocations: 397.7 kB / 500 MB, free: 12.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007638/0.1562, allocations: 0.6574 MB / 0.4889 GB, free: 11.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.1576, allocations: 1.144 MB / 0.49 GB, free: 9.973 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/0.1577, allocations: 4 kB / 0.49 GB, free: 9.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003509/0.1612, allocations: 1.705 MB / 0.4917 GB, free: 8.238 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.51e-05/0.1612, allocations: 8 kB / 0.4917 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002866/0.1641, allocations: 1.311 MB / 0.493 GB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001964/0.1661, allocations: 0.5808 MB / 0.4936 GB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005914/0.1667, allocations: 179.7 kB / 0.4937 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01248/0.1792, allocations: 10.35 MB / 0.5038 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007576/0.18, allocations: 51.88 kB / 0.5039 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.892e-05/0.1801, allocations: 44.17 kB / 0.5039 GB, free: 11.11 MB / 398.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.0006144/0.1807, allocations: 385.4 kB / 0.5043 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001895/0.1809, allocations: 94.81 kB / 0.5044 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002232/0.1831, allocations: 1.244 MB / 0.5056 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.1832, allocations: 8 kB / 0.5056 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.1832, allocations: 4 kB / 0.5056 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.829e-06/0.1832, allocations: 3.984 kB / 0.5056 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004023/0.1872, allocations: 2.404 MB / 0.508 GB, free: 6.844 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.1872, allocations: 4 kB / 0.508 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004441/0.1877, allocations: 103.9 kB / 0.5081 GB, free: 6.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.1887, allocations: 384 kB / 0.5084 GB, free: 6.348 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.463e-05/0.1888, allocations: 27.98 kB / 0.5085 GB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1768/0.3656, allocations: 9.285 MB / 0.5175 GB, free: 66.2 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.3657, allocations: 6 kB / 0.5175 GB, free: 66.2 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002424/0.3681, allocations: 1.682 MB / 0.5192 GB, free: 65.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00033/0.3684, allocations: 227.2 kB / 0.5194 GB, free: 65.86 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/0.3686, allocations: 26.84 kB / 0.5194 GB, free: 65.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004203/0.369, allocations: 29.14 kB / 0.5194 GB, free: 65.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.3691, allocations: 63.3 kB / 0.5195 GB, free: 65.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.413e-05/0.3692, allocations: 27.3 kB / 0.5195 GB, free: 65.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005706/0.3698, allocations: 0.5036 MB / 0.52 GB, free: 65.75 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3698, allocations: 0 / 0.52 GB, free: 65.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001161/0.3709, allocations: 363.8 kB / 0.5204 GB, free: 65.71 MB / 398.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.002772/0.3737, allocations: 2.261 MB / 0.5226 GB, free: 64.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002251/0.376, allocations: 1.771 MB / 0.5243 GB, free: 63.65 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.376, allocations: 1.219 kB / 0.5243 GB, free: 63.65 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001253/0.3772, allocations: 1.091 MB / 0.5254 GB, free: 62.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008937/0.3782, allocations: 204.8 kB / 0.5256 GB, free: 62.85 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01917/0.3973, allocations: 10.23 MB / 0.5356 GB, free: 57.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/0.3984, allocations: 1.26 MB / 0.5368 GB, free: 56.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007159/0.3992, allocations: 223.2 kB / 0.537 GB, free: 56.67 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006011/0.3998, allocations: 442.4 kB / 0.5374 GB, free: 56.32 MB / 398.1 MB Notification: Performance of SimCode: time 1.773e-06/0.3998, allocations: 0 / 0.5374 GB, free: 56.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05333/0.4531, allocations: 24.63 MB / 0.5615 GB, free: 36.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.65, allocations: 11.09 kB / 0.5615 GB, free: 36.49 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/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)