Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,fileNamePrefix="PowerSystems_latest_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.001786/0.001786, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001996/0.001996, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.476/1.476, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1854/0.1854, allocations: 38.05 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 63.91 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3129, allocations: 58.06 MB / 0.5036 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.008961/0.3219, allocations: 9.547 MB / 0.513 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006805/0.3288, allocations: 3.554 MB / 0.5164 GB, free: 14.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008513/0.3297, allocations: 34.59 kB / 0.5165 GB, free: 14.22 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003105/0.3328, allocations: 1.106 MB / 0.5175 GB, free: 13.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002716/0.3355, allocations: 0.8851 MB / 0.5184 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001492/0.3371, allocations: 483.9 kB / 0.5189 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002858/0.3399, allocations: 1.802 MB / 0.5206 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001286/0.3412, allocations: 0.9787 MB / 0.5216 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001282/0.3425, allocations: 0.7707 MB / 0.5223 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001355/0.3439, allocations: 0.8988 MB / 0.5232 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002023/0.3441, allocations: 105.4 kB / 0.5233 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001164/0.3453, allocations: 0.5354 MB / 0.5238 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006848/0.346, allocations: 0.6376 MB / 0.5245 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008986/0.3469, allocations: 0.6987 MB / 0.5251 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002687/0.3496, allocations: 1.916 MB / 0.527 GB, free: 9.484 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.3496, allocations: 1.562 kB / 0.527 GB, free: 9.484 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3496, allocations: 0 / 0.527 GB, free: 9.484 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.91e-05/0.3497, allocations: 3.938 kB / 0.527 GB, free: 9.48 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.003618/0.3533, allocations: 1.664 MB / 0.5287 GB, free: 8.414 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.3533, allocations: 14.88 kB / 0.5287 GB, free: 8.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002569/0.3536, allocations: 181.6 kB / 0.5288 GB, free: 8.293 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001718/0.3553, allocations: 273.5 kB / 0.5291 GB, free: 8.211 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002156/0.3575, allocations: 0.9622 MB / 0.53 GB, free: 7.637 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.2e-05/0.3576, allocations: 81.28 kB / 0.5301 GB, free: 7.598 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003144/0.3579, allocations: 131.5 kB / 0.5302 GB, free: 7.551 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002466/0.3604, allocations: 1.496 MB / 0.5317 GB, free: 6.629 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.973e-05/0.3604, allocations: 7.359 kB / 0.5317 GB, free: 6.625 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001194/0.3606, allocations: 46.17 kB / 0.5318 GB, free: 6.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000299/0.3609, allocations: 94.48 kB / 0.5318 GB, free: 6.566 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002127/0.363, allocations: 1.263 MB / 0.5331 GB, free: 5.953 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007997/0.371, allocations: 5.639 MB / 0.5386 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009239/0.3719, allocations: 0.5894 MB / 0.5392 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006019/0.3726, allocations: 396 kB / 0.5395 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.654e-05/0.3726, allocations: 20.56 kB / 0.5396 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.423e-05/0.3727, allocations: 46.09 kB / 0.5396 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.725e-06/0.3727, allocations: 0 / 0.5396 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.007713/0.3804, allocations: 3.667 MB / 0.5432 GB, free: 14.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.3805, allocations: 85.45 kB / 0.5433 GB, free: 14.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/0.3815, allocations: 0.7325 MB / 0.544 GB, free: 13.94 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.167e-05/0.3816, allocations: 40.8 kB / 0.544 GB, free: 13.9 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004705/0.3821, allocations: 0.606 MB / 0.5446 GB, free: 13.36 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000288/0.3823, allocations: 284.3 kB / 0.5449 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003038/0.3827, allocations: 182.4 kB / 0.5451 GB, free: 13 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002251/0.3829, allocations: 399.9 kB / 0.5454 GB, free: 12.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006057/0.3835, allocations: 395.4 kB / 0.5458 GB, free: 12.44 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008404/0.3844, allocations: 0.6612 MB / 0.5465 GB, free: 11.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001643/0.386, allocations: 1.137 MB / 0.5476 GB, free: 10.65 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.386, allocations: 4 kB / 0.5476 GB, free: 10.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003629/0.3897, allocations: 1.714 MB / 0.5492 GB, free: 8.914 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/0.3897, allocations: 8.281 kB / 0.5493 GB, free: 8.906 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002781/0.3925, allocations: 1.317 MB / 0.5505 GB, free: 7.578 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002051/0.3946, allocations: 0.573 MB / 0.5511 GB, free: 6.992 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006308/0.3952, allocations: 175.7 kB / 0.5513 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01392/0.4091, allocations: 10.36 MB / 0.5614 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009081/0.4101, allocations: 51.92 kB / 0.5614 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001355/0.4102, allocations: 43.98 kB / 0.5615 GB, free: 11.79 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.0008233/0.4111, allocations: 385.5 kB / 0.5618 GB, free: 11.4 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002438/0.4113, allocations: 99.39 kB / 0.5619 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002533/0.4139, allocations: 1.24 MB / 0.5631 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.4139, allocations: 8.188 kB / 0.5632 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.4139, allocations: 4 kB / 0.5632 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.4139, allocations: 7.922 kB / 0.5632 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0048/0.4187, allocations: 2.401 MB / 0.5655 GB, free: 7.512 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.4187, allocations: 4 kB / 0.5655 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004924/0.4192, allocations: 116 kB / 0.5656 GB, free: 7.395 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001161/0.4204, allocations: 371.9 kB / 0.566 GB, free: 7.016 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.611e-05/0.4205, allocations: 23.98 kB / 0.566 GB, free: 6.992 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009382/0.4299, allocations: 9.295 MB / 0.5751 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.4299, allocations: 8.062 kB / 0.5751 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003053/0.433, allocations: 1.675 MB / 0.5767 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005332/0.4335, allocations: 236.4 kB / 0.577 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002132/0.4338, allocations: 31.94 kB / 0.577 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005367/0.4343, allocations: 27.97 kB / 0.577 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.4345, allocations: 60.42 kB / 0.5771 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.839e-05/0.4345, allocations: 23.98 kB / 0.5771 GB, free: 10.87 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007979/0.4353, allocations: 0.5068 MB / 0.5776 GB, free: 10.37 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4353, allocations: 0 / 0.5776 GB, free: 10.37 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001593/0.4369, allocations: 363.9 kB / 0.5779 GB, free: 10.01 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.003522/0.4405, allocations: 2.281 MB / 0.5802 GB, free: 7.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002814/0.4433, allocations: 1.594 MB / 0.5817 GB, free: 6.016 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.4433, allocations: 0 / 0.5817 GB, free: 6.016 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001799/0.4451, allocations: 1.091 MB / 0.5828 GB, free: 4.859 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.4464, allocations: 206.8 kB / 0.583 GB, free: 4.668 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01764/0.4641, allocations: 9.962 MB / 0.5927 GB, free: 10.28 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001272/0.4654, allocations: 1.255 MB / 0.5939 GB, free: 8.992 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00061/0.466, allocations: 215.6 kB / 0.5941 GB, free: 8.777 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006033/0.4666, allocations: 447.3 kB / 0.5946 GB, free: 8.34 MB / 462.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4666, allocations: 0 / 0.5946 GB, free: 8.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1077/0.5743, allocations: 25.02 MB / 0.619 GB, free: 15.58 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.21/14.79, allocations: 6.688 kB / 0.619 GB, free: 15.58 MB / 494.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1)