Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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 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.TurbineGenerator,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_latest_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.001109/0.001109, allocations: 105.2 kB / 17.06 MB, free: 6.023 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.001203/0.001203, allocations: 196 kB / 18 MB, free: 5.102 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.31/1.31, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1744/0.1744, allocations: 38.05 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 63.89 kB / 457.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3442, allocations: 58.05 MB / 0.5036 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.007154/0.3514, allocations: 7.524 MB / 0.511 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00444/0.3558, allocations: 2.974 MB / 0.5139 GB, free: 120 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008185/0.3567, allocations: 25.69 kB / 0.5139 GB, free: 112 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002205/0.359, allocations: 0.7312 MB / 0.5146 GB, free: 15.67 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002293/0.3613, allocations: 0.6952 MB / 0.5153 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001164/0.3625, allocations: 378 kB / 0.5157 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002072/0.3646, allocations: 1.352 MB / 0.517 GB, free: 14.53 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00113/0.3657, allocations: 0.7171 MB / 0.5177 GB, free: 14.22 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/0.3669, allocations: 0.5631 MB / 0.5182 GB, free: 13.97 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001283/0.3681, allocations: 0.6268 MB / 0.5188 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002197/0.3684, allocations: 78.16 kB / 0.5189 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001105/0.3695, allocations: 475.5 kB / 0.5194 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005788/0.3701, allocations: 455.9 kB / 0.5198 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008814/0.371, allocations: 0.5061 MB / 0.5203 GB, free: 13.13 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002/0.373, allocations: 1.42 MB / 0.5217 GB, free: 12.64 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.373, allocations: 0 / 0.5217 GB, free: 12.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.373, allocations: 0 / 0.5217 GB, free: 12.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.261e-05/0.3731, allocations: 2.75 kB / 0.5217 GB, free: 12.64 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002928/0.376, allocations: 1.281 MB / 0.5229 GB, free: 11.78 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.376, allocations: 13.45 kB / 0.5229 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002333/0.3763, allocations: 141.1 kB / 0.5231 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001334/0.3776, allocations: 206.9 kB / 0.5233 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001627/0.3793, allocations: 0.741 MB / 0.524 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.791e-05/0.3793, allocations: 63.12 kB / 0.5241 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002319/0.3796, allocations: 96.2 kB / 0.5242 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001757/0.3813, allocations: 1.096 MB / 0.5252 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.093e-05/0.3814, allocations: 6.891 kB / 0.5252 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.353e-05/0.3815, allocations: 35.58 kB / 0.5253 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001699/0.3817, allocations: 72.92 kB / 0.5253 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/0.3831, allocations: 0.8724 MB / 0.5262 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005596/0.3887, allocations: 3.971 MB / 0.5301 GB, free: 7.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006851/0.3894, allocations: 432.1 kB / 0.5305 GB, free: 7.305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000435/0.3899, allocations: 282.1 kB / 0.5307 GB, free: 7.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.262e-05/0.3899, allocations: 13.64 kB / 0.5308 GB, free: 7.152 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.48e-05/0.39, allocations: 42.44 kB / 0.5308 GB, free: 7.105 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 3.286e-06/0.39, allocations: 0 / 0.5308 GB, free: 7.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.003297/0.3933, allocations: 1.71 MB / 0.5325 GB, free: 6.051 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.692e-05/0.3934, allocations: 91.08 kB / 0.5326 GB, free: 5.949 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006687/0.3941, allocations: 0.5867 MB / 0.5331 GB, free: 5.602 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.451e-05/0.3941, allocations: 36.2 kB / 0.5332 GB, free: 5.562 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003389/0.3945, allocations: 469.3 kB / 0.5336 GB, free: 5.148 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/0.3946, allocations: 193.6 kB / 0.5338 GB, free: 4.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002241/0.3949, allocations: 133.4 kB / 0.5339 GB, free: 4.902 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.3951, allocations: 385.1 kB / 0.5343 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004254/0.3955, allocations: 251.9 kB / 0.5345 GB, free: 4.414 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005562/0.3961, allocations: 477.1 kB / 0.535 GB, free: 4.008 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009592/0.397, allocations: 0.7746 MB / 0.5357 GB, free: 3.441 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.397, allocations: 2.5 kB / 0.5357 GB, free: 3.441 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002146/0.3992, allocations: 1.112 MB / 0.5368 GB, free: 2.793 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/0.3992, allocations: 7.375 kB / 0.5368 GB, free: 2.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001521/0.4008, allocations: 0.7993 MB / 0.5376 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.4018, allocations: 219.5 kB / 0.5378 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008271/0.4026, allocations: 158 kB / 0.538 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008431/0.4111, allocations: 5.665 MB / 0.5435 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009909/0.4121, allocations: 34.39 kB / 0.5435 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.993e-05/0.4122, allocations: 37.02 kB / 0.5436 GB, free: 13 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.0007198/0.413, allocations: 301.1 kB / 0.5439 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002193/0.4132, allocations: 71.03 kB / 0.5439 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001419/0.4146, allocations: 0.6068 MB / 0.5445 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.4147, allocations: 5.5 kB / 0.5445 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4147, allocations: 1.375 kB / 0.5445 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.4147, allocations: 7.969 kB / 0.5445 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003643/0.4183, allocations: 1.486 MB / 0.546 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.4184, allocations: 2.656 kB / 0.546 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009799/0.4194, allocations: 129.8 kB / 0.5461 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.338e-05/0.4194, allocations: 6.75 kB / 0.5461 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.457e-05/0.4195, allocations: 18.44 kB / 0.5461 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.669e-06/0.4195, allocations: 4.188 kB / 0.5461 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.4195, allocations: 2.25 kB / 0.5461 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002097/0.4216, allocations: 0.926 MB / 0.5471 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004618/0.4221, allocations: 184.3 kB / 0.5472 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001978/0.4223, allocations: 22.33 kB / 0.5472 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006424/0.423, allocations: 20.33 kB / 0.5473 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.4231, allocations: 36.3 kB / 0.5473 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.253e-05/0.4232, allocations: 11 kB / 0.5473 GB, free: 10.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008897/0.4241, allocations: 424.8 kB / 0.5477 GB, free: 10.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4241, allocations: 0 / 0.5477 GB, free: 10.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00154/0.4256, allocations: 236 kB / 0.5479 GB, free: 9.949 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.002823/0.4285, allocations: 1.511 MB / 0.5494 GB, free: 8.395 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002825/0.4313, allocations: 1.05 MB / 0.5504 GB, free: 7.309 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.4313, allocations: 4.062 kB / 0.5504 GB, free: 7.305 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006763/0.432, allocations: 258.3 kB / 0.5507 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.001468/0.4335, allocations: 168.8 kB / 0.5509 GB, free: 6.895 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01734/0.4509, allocations: 7.294 MB / 0.558 GB, free: 15.24 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001251/0.4522, allocations: 1.078 MB / 0.559 GB, free: 14.13 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009853/0.4532, allocations: 193.9 kB / 0.5592 GB, free: 13.94 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007493/0.454, allocations: 331.3 kB / 0.5595 GB, free: 13.62 MB / 430.1 MB Notification: Performance of SimCode: time 1.513e-06/0.454, allocations: 0 / 0.5595 GB, free: 13.62 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05757/0.5116, allocations: 17.02 MB / 0.5762 GB, free: 12.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.88/13.39, allocations: 6.594 kB / 0.5762 GB, free: 12.81 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1)