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.001202/0.001202, allocations: 109.5 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.001213/0.001213, allocations: 189.4 kB / 18 MB, free: 5.09 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.404/1.404, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1773/0.1773, allocations: 38.05 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 71.83 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3234, allocations: 58.06 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.008943/0.3324, allocations: 9.554 MB / 0.513 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005751/0.3382, allocations: 3.552 MB / 0.5164 GB, free: 14.29 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004319/0.3386, allocations: 33.88 kB / 0.5165 GB, free: 14.28 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002644/0.3413, allocations: 1.107 MB / 0.5175 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001861/0.3432, allocations: 0.8854 MB / 0.5184 GB, free: 13.13 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.3443, allocations: 478.9 kB / 0.5189 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002314/0.3466, allocations: 1.807 MB / 0.5206 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00115/0.3478, allocations: 0.9758 MB / 0.5216 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009335/0.3488, allocations: 0.7694 MB / 0.5223 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0012/0.35, allocations: 0.8929 MB / 0.5232 GB, free: 11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001553/0.3501, allocations: 105.3 kB / 0.5233 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009513/0.3511, allocations: 0.5338 MB / 0.5238 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006984/0.3518, allocations: 0.6388 MB / 0.5245 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000847/0.3527, allocations: 0.7026 MB / 0.5251 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002575/0.3552, allocations: 1.908 MB / 0.527 GB, free: 9.559 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3553, allocations: 7.938 kB / 0.527 GB, free: 9.551 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3553, allocations: 0 / 0.527 GB, free: 9.551 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.431e-05/0.3553, allocations: 1.594 kB / 0.527 GB, free: 9.551 MB / 398.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.00354/0.3588, allocations: 1.664 MB / 0.5286 GB, free: 8.484 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.3589, allocations: 8.875 kB / 0.5286 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002601/0.3592, allocations: 175.1 kB / 0.5288 GB, free: 8.375 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001694/0.3609, allocations: 286.4 kB / 0.5291 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002102/0.363, allocations: 0.9615 MB / 0.53 GB, free: 7.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.071e-05/0.3631, allocations: 81.12 kB / 0.5301 GB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000322/0.3634, allocations: 136 kB / 0.5302 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002436/0.3658, allocations: 1.489 MB / 0.5317 GB, free: 6.727 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.038e-05/0.3659, allocations: 9.734 kB / 0.5317 GB, free: 6.719 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001135/0.366, allocations: 42.78 kB / 0.5317 GB, free: 6.688 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000301/0.3663, allocations: 98.88 kB / 0.5318 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002136/0.3685, allocations: 1.258 MB / 0.5331 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00878/0.3773, allocations: 5.635 MB / 0.5386 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.3783, allocations: 0.598 MB / 0.5391 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006163/0.379, allocations: 396.1 kB / 0.5395 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.595e-05/0.379, allocations: 12.02 kB / 0.5395 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.3791, allocations: 38.28 kB / 0.5396 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.715e-06/0.3791, allocations: 4 kB / 0.5396 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.008067/0.3872, allocations: 3.675 MB / 0.5432 GB, free: 14.56 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.585e-05/0.3872, allocations: 88.58 kB / 0.5432 GB, free: 14.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001079/0.3883, allocations: 0.7327 MB / 0.544 GB, free: 14.04 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.038e-05/0.3884, allocations: 40.77 kB / 0.544 GB, free: 14 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004829/0.3889, allocations: 0.6066 MB / 0.5446 GB, free: 13.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002632/0.3892, allocations: 284 kB / 0.5449 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002983/0.3895, allocations: 182.7 kB / 0.545 GB, free: 13.1 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000241/0.3897, allocations: 398.8 kB / 0.5454 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006403/0.3904, allocations: 390.8 kB / 0.5458 GB, free: 12.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00092/0.3913, allocations: 0.6623 MB / 0.5464 GB, free: 11.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001633/0.3929, allocations: 1.14 MB / 0.5476 GB, free: 10.67 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.3929, allocations: 0 / 0.5476 GB, free: 10.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003428/0.3964, allocations: 1.721 MB / 0.5492 GB, free: 8.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.3964, allocations: 12 kB / 0.5492 GB, free: 8.918 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002706/0.3991, allocations: 1.31 MB / 0.5505 GB, free: 7.598 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001895/0.401, allocations: 0.5808 MB / 0.5511 GB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006083/0.4017, allocations: 171.7 kB / 0.5513 GB, free: 6.836 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01332/0.415, allocations: 10.36 MB / 0.5614 GB, free: 11.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.4161, allocations: 48.02 kB / 0.5614 GB, free: 11.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.231e-05/0.4162, allocations: 43.98 kB / 0.5615 GB, free: 11.81 MB / 430.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.0008191/0.417, allocations: 389.4 kB / 0.5618 GB, free: 11.42 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001807/0.4172, allocations: 95.39 kB / 0.5619 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002424/0.4196, allocations: 1.24 MB / 0.5631 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/0.4196, allocations: 8.062 kB / 0.5631 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.4197, allocations: 8 kB / 0.5631 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.4197, allocations: 7.984 kB / 0.5632 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004324/0.424, allocations: 2.405 MB / 0.5655 GB, free: 7.523 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.424, allocations: 4.188 kB / 0.5655 GB, free: 7.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004681/0.4245, allocations: 111.8 kB / 0.5656 GB, free: 7.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001241/0.4258, allocations: 372 kB / 0.566 GB, free: 7.031 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.374e-05/0.4258, allocations: 27.98 kB / 0.566 GB, free: 7.004 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008898/0.4347, allocations: 9.307 MB / 0.5751 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4348, allocations: 0 / 0.5751 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002724/0.4375, allocations: 1.675 MB / 0.5767 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004423/0.4379, allocations: 232.4 kB / 0.5769 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.4381, allocations: 31.94 kB / 0.577 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004261/0.4385, allocations: 31.97 kB / 0.577 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.4386, allocations: 56.48 kB / 0.5771 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.867e-05/0.4387, allocations: 23.98 kB / 0.5771 GB, free: 10.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006674/0.4394, allocations: 0.5107 MB / 0.5776 GB, free: 10.38 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4394, allocations: 0 / 0.5776 GB, free: 10.38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001409/0.4408, allocations: 359.9 kB / 0.5779 GB, free: 10.02 MB / 446.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.003093/0.4439, allocations: 2.28 MB / 0.5801 GB, free: 7.672 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002361/0.4463, allocations: 1.593 MB / 0.5817 GB, free: 6.027 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4463, allocations: 0 / 0.5817 GB, free: 6.027 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001551/0.4478, allocations: 1.092 MB / 0.5828 GB, free: 4.871 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000952/0.4488, allocations: 208.9 kB / 0.583 GB, free: 4.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0155/0.4643, allocations: 9.955 MB / 0.5927 GB, free: 10.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001096/0.4654, allocations: 1.255 MB / 0.5939 GB, free: 9.012 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005837/0.466, allocations: 211.6 kB / 0.5941 GB, free: 8.801 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005613/0.4666, allocations: 451.2 kB / 0.5945 GB, free: 8.359 MB / 462.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4666, allocations: 4 kB / 0.5946 GB, free: 8.355 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08483/0.5515, allocations: 24.99 MB / 0.619 GB, free: 15.56 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.71/14.26, allocations: 7.797 kB / 0.619 GB, free: 15.55 MB / 494.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)