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.001509/0.001509, allocations: 112.8 kB / 17.06 MB, free: 5.996 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.001734/0.001735, allocations: 198.9 kB / 18 MB, free: 5.078 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.333/1.333, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1812/0.1812, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 63.91 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3174, allocations: 58.05 MB / 0.5036 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.007317/0.3247, allocations: 7.525 MB / 0.511 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004272/0.3291, allocations: 2.973 MB / 0.5139 GB, free: 132 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005373/0.3296, allocations: 29.5 kB / 0.5139 GB, free: 120 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002029/0.3317, allocations: 0.7324 MB / 0.5146 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002352/0.3341, allocations: 0.6913 MB / 0.5153 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001465/0.3356, allocations: 374.4 kB / 0.5157 GB, free: 15.13 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002792/0.3384, allocations: 1.352 MB / 0.517 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001433/0.3398, allocations: 0.7141 MB / 0.5177 GB, free: 14.24 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001433/0.3413, allocations: 0.5627 MB / 0.5182 GB, free: 13.99 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001869/0.3432, allocations: 0.6276 MB / 0.5188 GB, free: 13.74 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004508/0.3436, allocations: 78.25 kB / 0.5189 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001815/0.3455, allocations: 478.5 kB / 0.5194 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001053/0.3465, allocations: 448.5 kB / 0.5198 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001515/0.348, allocations: 0.5087 MB / 0.5203 GB, free: 13.15 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003304/0.3514, allocations: 1.428 MB / 0.5217 GB, free: 12.65 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.3514, allocations: 1.938 kB / 0.5217 GB, free: 12.65 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3514, allocations: 0 / 0.5217 GB, free: 12.65 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.369e-05/0.3515, allocations: 0 / 0.5217 GB, free: 12.65 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.003648/0.3551, allocations: 1.277 MB / 0.5229 GB, free: 11.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.3552, allocations: 9.625 kB / 0.5229 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003181/0.3555, allocations: 142.1 kB / 0.5231 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001446/0.357, allocations: 214.2 kB / 0.5233 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002084/0.3591, allocations: 0.7335 MB / 0.524 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.921e-05/0.3591, allocations: 65.55 kB / 0.5241 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003186/0.3595, allocations: 97.8 kB / 0.5242 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002117/0.3616, allocations: 1.095 MB / 0.5252 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.808e-05/0.3616, allocations: 7.141 kB / 0.5252 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.421e-05/0.3617, allocations: 31.09 kB / 0.5253 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001743/0.3619, allocations: 73.22 kB / 0.5253 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.3637, allocations: 0.8724 MB / 0.5262 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006225/0.3699, allocations: 3.976 MB / 0.5301 GB, free: 7.605 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006352/0.3706, allocations: 432.4 kB / 0.5305 GB, free: 7.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000384/0.371, allocations: 285.5 kB / 0.5307 GB, free: 7.176 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.69e-05/0.371, allocations: 9.5 kB / 0.5308 GB, free: 7.172 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.3711, allocations: 40.69 kB / 0.5308 GB, free: 7.125 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.334e-06/0.3711, allocations: 1.906 kB / 0.5308 GB, free: 7.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.003088/0.3742, allocations: 1.718 MB / 0.5325 GB, free: 6.062 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.3742, allocations: 82.05 kB / 0.5326 GB, free: 5.969 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000728/0.375, allocations: 0.5868 MB / 0.5331 GB, free: 5.621 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.632e-05/0.375, allocations: 36.27 kB / 0.5332 GB, free: 5.582 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003028/0.3753, allocations: 468.9 kB / 0.5336 GB, free: 5.168 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.3755, allocations: 189.9 kB / 0.5338 GB, free: 5.004 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/0.3757, allocations: 142 kB / 0.5339 GB, free: 4.918 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3759, allocations: 380.2 kB / 0.5343 GB, free: 4.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003982/0.3763, allocations: 252.3 kB / 0.5345 GB, free: 4.434 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005194/0.3768, allocations: 473 kB / 0.535 GB, free: 4.031 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.3778, allocations: 0.7793 MB / 0.5357 GB, free: 3.461 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/0.3778, allocations: 1.719 kB / 0.5357 GB, free: 3.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002027/0.3799, allocations: 1.111 MB / 0.5368 GB, free: 2.812 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.3799, allocations: 8.438 kB / 0.5368 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001388/0.3813, allocations: 0.7946 MB / 0.5376 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007494/0.382, allocations: 232.8 kB / 0.5378 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005414/0.3826, allocations: 152.8 kB / 0.538 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005555/0.3882, allocations: 5.657 MB / 0.5435 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006456/0.3888, allocations: 37.84 kB / 0.5435 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.417e-05/0.3889, allocations: 36.73 kB / 0.5436 GB, free: 13.03 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.0005337/0.3895, allocations: 301.2 kB / 0.5439 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001744/0.3896, allocations: 72.14 kB / 0.5439 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001026/0.3907, allocations: 0.6103 MB / 0.5445 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.3907, allocations: 4.781 kB / 0.5445 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.3907, allocations: 1.5 kB / 0.5445 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.3907, allocations: 3.984 kB / 0.5445 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002701/0.3934, allocations: 1.49 MB / 0.546 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.3935, allocations: 6.812 kB / 0.546 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000631/0.3941, allocations: 121.2 kB / 0.5461 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.315e-05/0.3941, allocations: 7.188 kB / 0.5461 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.544e-05/0.3942, allocations: 23.23 kB / 0.5461 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.3942, allocations: 10.44 kB / 0.5462 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3942, allocations: 2.75 kB / 0.5462 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/0.3955, allocations: 0.9266 MB / 0.5471 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003789/0.3959, allocations: 183.7 kB / 0.5472 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.396, allocations: 22.55 kB / 0.5473 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003534/0.3963, allocations: 19.67 kB / 0.5473 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.492e-05/0.3964, allocations: 28.75 kB / 0.5473 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.397e-05/0.3965, allocations: 19.98 kB / 0.5473 GB, free: 10.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005033/0.397, allocations: 415 kB / 0.5477 GB, free: 10.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.397, allocations: 4 kB / 0.5477 GB, free: 10.17 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009362/0.3979, allocations: 236 kB / 0.5479 GB, free: 9.941 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.001804/0.3997, allocations: 1.513 MB / 0.5494 GB, free: 8.383 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001794/0.4015, allocations: 1.046 MB / 0.5504 GB, free: 7.301 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4016, allocations: 4.188 kB / 0.5505 GB, free: 7.297 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003688/0.4019, allocations: 266.3 kB / 0.5507 GB, free: 7.039 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008593/0.4028, allocations: 156 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.01196/0.4148, allocations: 7.295 MB / 0.558 GB, free: 15.24 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000819/0.4156, allocations: 1.082 MB / 0.559 GB, free: 14.12 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005571/0.4162, allocations: 189.9 kB / 0.5592 GB, free: 13.94 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00047/0.4167, allocations: 327.3 kB / 0.5595 GB, free: 13.62 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4167, allocations: 4 kB / 0.5595 GB, free: 13.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.046/0.4627, allocations: 17.02 MB / 0.5762 GB, free: 12.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.3, allocations: 3.875 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)