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.001444/0.001445, allocations: 111.8 kB / 17.06 MB, free: 6 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.001373/0.001373, allocations: 195.9 kB / 18 MB, free: 5.082 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.378/1.378, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1823/0.1823, allocations: 38.03 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 67.91 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.298/0.2999, allocations: 58.06 MB / 0.5036 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.007576/0.3075, allocations: 7.511 MB / 0.511 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004474/0.3121, allocations: 2.979 MB / 0.5139 GB, free: 180 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006085/0.3127, allocations: 24.5 kB / 0.5139 GB, free: 172 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002084/0.3148, allocations: 0.7375 MB / 0.5146 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002193/0.317, allocations: 0.6881 MB / 0.5153 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.3183, allocations: 381.9 kB / 0.5157 GB, free: 15.17 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00242/0.3207, allocations: 1.355 MB / 0.517 GB, free: 14.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001204/0.322, allocations: 0.7127 MB / 0.5177 GB, free: 14.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001167/0.3231, allocations: 0.5548 MB / 0.5182 GB, free: 14.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001399/0.3246, allocations: 0.6223 MB / 0.5188 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001773/0.3247, allocations: 75.06 kB / 0.5189 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001239/0.326, allocations: 483.2 kB / 0.5194 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006436/0.3267, allocations: 455.7 kB / 0.5198 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007791/0.3274, allocations: 0.5009 MB / 0.5203 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002129/0.3296, allocations: 1.428 MB / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3296, allocations: 0 / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3296, allocations: 0 / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.841e-05/0.3296, allocations: 0 / 0.5217 GB, free: 12.7 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.002651/0.3323, allocations: 1.314 MB / 0.523 GB, free: 11.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.3324, allocations: 14.28 kB / 0.523 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001867/0.3326, allocations: 136.6 kB / 0.5231 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001268/0.3338, allocations: 216.2 kB / 0.5233 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001519/0.3354, allocations: 0.7453 MB / 0.524 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.007e-05/0.3354, allocations: 71.34 kB / 0.5241 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002347/0.3357, allocations: 91.5 kB / 0.5242 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001794/0.3375, allocations: 1.097 MB / 0.5253 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.239e-05/0.3375, allocations: 6.016 kB / 0.5253 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.805e-05/0.3376, allocations: 36.67 kB / 0.5253 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001749/0.3378, allocations: 72.23 kB / 0.5254 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001508/0.3393, allocations: 0.8719 MB / 0.5262 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005996/0.3453, allocations: 3.987 MB / 0.5301 GB, free: 7.582 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006784/0.346, allocations: 435.9 kB / 0.5305 GB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000407/0.3465, allocations: 271.1 kB / 0.5308 GB, free: 7.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.27e-05/0.3465, allocations: 15.47 kB / 0.5308 GB, free: 7.152 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.3466, allocations: 46.92 kB / 0.5309 GB, free: 7.098 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.364e-06/0.3466, allocations: 0 / 0.5309 GB, free: 7.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.003346/0.3499, allocations: 1.73 MB / 0.5325 GB, free: 6.027 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.471e-05/0.35, allocations: 86.58 kB / 0.5326 GB, free: 5.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00081/0.3508, allocations: 0.5982 MB / 0.5332 GB, free: 5.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.896e-05/0.3509, allocations: 31.86 kB / 0.5332 GB, free: 5.535 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003912/0.3513, allocations: 473.8 kB / 0.5337 GB, free: 5.117 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.3515, allocations: 195 kB / 0.5339 GB, free: 4.949 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002653/0.3517, allocations: 150.7 kB / 0.534 GB, free: 4.855 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002268/0.352, allocations: 376.4 kB / 0.5344 GB, free: 4.496 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004325/0.3524, allocations: 252.4 kB / 0.5346 GB, free: 4.375 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006286/0.353, allocations: 476 kB / 0.5351 GB, free: 3.969 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.3542, allocations: 0.7715 MB / 0.5358 GB, free: 3.406 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.75e-06/0.3542, allocations: 2.219 kB / 0.5358 GB, free: 3.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002248/0.3565, allocations: 1.116 MB / 0.5369 GB, free: 2.754 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.3565, allocations: 7.438 kB / 0.5369 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001448/0.358, allocations: 0.8023 MB / 0.5377 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008192/0.3588, allocations: 216.1 kB / 0.5379 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005867/0.3594, allocations: 158.1 kB / 0.5381 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006619/0.366, allocations: 5.678 MB / 0.5436 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006908/0.3667, allocations: 37.84 kB / 0.5437 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-05/0.3668, allocations: 28.75 kB / 0.5437 GB, free: 12.96 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.0005411/0.3674, allocations: 301.2 kB / 0.544 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.3675, allocations: 71.16 kB / 0.544 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001046/0.3686, allocations: 0.6152 MB / 0.5446 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.3686, allocations: 4.969 kB / 0.5446 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3686, allocations: 1.219 kB / 0.5446 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.3686, allocations: 3.984 kB / 0.5446 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002606/0.3712, allocations: 1.484 MB / 0.5461 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.3712, allocations: 1.094 kB / 0.5461 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000631/0.3719, allocations: 130.3 kB / 0.5462 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.015e-05/0.3719, allocations: 6.781 kB / 0.5462 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.446e-05/0.3719, allocations: 14.62 kB / 0.5462 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.612e-06/0.372, allocations: 3.906 kB / 0.5462 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.372, allocations: 5.594 kB / 0.5462 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.3733, allocations: 0.9356 MB / 0.5472 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003374/0.3736, allocations: 192 kB / 0.5473 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.509e-05/0.3737, allocations: 14.62 kB / 0.5474 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003353/0.3741, allocations: 21.89 kB / 0.5474 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.153e-05/0.3742, allocations: 40.31 kB / 0.5474 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.831e-05/0.3742, allocations: 20 kB / 0.5474 GB, free: 10.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005624/0.3748, allocations: 423 kB / 0.5478 GB, free: 10.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3748, allocations: 0 / 0.5478 GB, free: 10.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009459/0.3757, allocations: 235.9 kB / 0.5481 GB, free: 9.844 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.001831/0.3776, allocations: 1.522 MB / 0.5496 GB, free: 8.277 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001825/0.3794, allocations: 1.038 MB / 0.5506 GB, free: 7.203 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3794, allocations: 0 / 0.5506 GB, free: 7.203 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004242/0.3799, allocations: 266.5 kB / 0.5508 GB, free: 6.945 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009169/0.3808, allocations: 146.1 kB / 0.551 GB, free: 6.805 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.3923, allocations: 7.344 MB / 0.5581 GB, free: 15.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008026/0.3931, allocations: 1.079 MB / 0.5592 GB, free: 13.99 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005437/0.3937, allocations: 189.9 kB / 0.5594 GB, free: 13.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004673/0.3942, allocations: 323.3 kB / 0.5597 GB, free: 13.49 MB / 430.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3942, allocations: 0 / 0.5597 GB, free: 13.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05294/0.4471, allocations: 16.75 MB / 0.576 GB, free: 12.97 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.53, allocations: 4 kB / 0.576 GB, free: 12.96 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1)