Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.PowerAngle,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle",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.001529/0.001529, allocations: 108.5 kB / 17.06 MB, free: 6.016 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.001608/0.001608, allocations: 192 kB / 18 MB, free: 5.098 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.438/1.438, 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.1878/0.1878, allocations: 38.03 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 63.91 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3393, allocations: 58.06 MB / 0.5036 GB, free: 7.414 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007759/0.3471, allocations: 7.452 MB / 0.5109 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00462/0.3518, allocations: 2.981 MB / 0.5138 GB, free: 132 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006499/0.3525, allocations: 25.12 kB / 0.5138 GB, free: 124 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002203/0.3547, allocations: 0.7757 MB / 0.5146 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002133/0.3568, allocations: 0.6855 MB / 0.5153 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.3579, allocations: 377.9 kB / 0.5156 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001888/0.3598, allocations: 1.324 MB / 0.5169 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001104/0.3609, allocations: 0.7496 MB / 0.5177 GB, free: 14.21 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001186/0.3621, allocations: 0.5575 MB / 0.5182 GB, free: 13.97 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001179/0.3633, allocations: 0.6293 MB / 0.5188 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001241/0.3635, allocations: 73.31 kB / 0.5189 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009987/0.3645, allocations: 487.5 kB / 0.5193 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004672/0.3649, allocations: 463.1 kB / 0.5198 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000537/0.3655, allocations: 0.5002 MB / 0.5203 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00178/0.3673, allocations: 1.422 MB / 0.5217 GB, free: 12.64 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3673, allocations: 3.938 kB / 0.5217 GB, free: 12.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3673, allocations: 0 / 0.5217 GB, free: 12.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.176e-05/0.3673, allocations: 1.406 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002294/0.3696, allocations: 1.264 MB / 0.5229 GB, free: 11.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.3697, allocations: 13.61 kB / 0.5229 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001839/0.3699, allocations: 138.3 kB / 0.523 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001284/0.3712, allocations: 201.7 kB / 0.5232 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001462/0.3727, allocations: 0.7229 MB / 0.5239 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.792e-05/0.3727, allocations: 63.12 kB / 0.524 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002199/0.3729, allocations: 99.72 kB / 0.5241 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001819/0.3748, allocations: 1.116 MB / 0.5252 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.753e-05/0.3748, allocations: 1.281 kB / 0.5252 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.277e-05/0.3749, allocations: 40.64 kB / 0.5252 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001698/0.3751, allocations: 68.89 kB / 0.5253 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/0.3765, allocations: 0.8903 MB / 0.5262 GB, free: 10.34 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005608/0.3821, allocations: 4.056 MB / 0.5301 GB, free: 7.527 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005836/0.3827, allocations: 421.2 kB / 0.5305 GB, free: 7.242 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003723/0.3831, allocations: 278.8 kB / 0.5308 GB, free: 7.098 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.26e-05/0.3832, allocations: 7.547 kB / 0.5308 GB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.3832, allocations: 42 kB / 0.5308 GB, free: 7.047 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.054e-06/0.3832, allocations: 0 / 0.5308 GB, free: 7.047 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.004319/0.3875, allocations: 1.985 MB / 0.5328 GB, free: 5.863 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/0.3876, allocations: 83.58 kB / 0.5329 GB, free: 5.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000685/0.3883, allocations: 0.5658 MB / 0.5334 GB, free: 5.434 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.3884, allocations: 31.95 kB / 0.5334 GB, free: 5.398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000321/0.3887, allocations: 477.2 kB / 0.5339 GB, free: 4.977 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.3889, allocations: 186.1 kB / 0.5341 GB, free: 4.816 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002133/0.3891, allocations: 148.2 kB / 0.5342 GB, free: 4.727 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3892, allocations: 388.6 kB / 0.5346 GB, free: 4.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004078/0.3897, allocations: 268 kB / 0.5348 GB, free: 4.227 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005493/0.3902, allocations: 0.5107 MB / 0.5353 GB, free: 3.777 MB / 398.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.003026/0.3932, allocations: 1.401 MB / 0.5367 GB, free: 2.879 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.563e-06/0.3933, allocations: 2.344 kB / 0.5367 GB, free: 2.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001898/0.3952, allocations: 1.096 MB / 0.5378 GB, free: 2.242 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.3952, allocations: 8.375 kB / 0.5378 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001211/0.3964, allocations: 0.7596 MB / 0.5385 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005283/0.397, allocations: 163.5 kB / 0.5387 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006018/0.3976, allocations: 180.6 kB / 0.5389 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003882/0.4015, allocations: 4.846 MB / 0.5436 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006113/0.4021, allocations: 43.22 kB / 0.5436 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.027e-05/0.4022, allocations: 30.12 kB / 0.5437 GB, free: 12.94 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: generator.w_el = generator.omega[1] + generator.omega[2]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (87): * Single equations (assignments): 84 * 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): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005498/0.4027, allocations: 315.9 kB / 0.544 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.4028, allocations: 73.19 kB / 0.544 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/0.404, allocations: 0.64 MB / 0.5447 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.044e-06/0.404, allocations: 4.938 kB / 0.5447 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.404, allocations: 1.094 kB / 0.5447 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.404, allocations: 5.391 kB / 0.5447 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002778/0.4068, allocations: 1.515 MB / 0.5462 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.4068, allocations: 1.375 kB / 0.5462 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005965/0.4074, allocations: 128.7 kB / 0.5463 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.724e-06/0.4075, allocations: 7.781 kB / 0.5463 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.129e-05/0.4075, allocations: 14.47 kB / 0.5463 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.4075, allocations: 4 kB / 0.5463 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.4075, allocations: 10 kB / 0.5463 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.4088, allocations: 0.9561 MB / 0.5472 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000274/0.4091, allocations: 182.9 kB / 0.5474 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.4092, allocations: 19.98 kB / 0.5474 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003492/0.4096, allocations: 15.98 kB / 0.5475 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.4096, allocations: 40.27 kB / 0.5475 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.172e-05/0.4097, allocations: 20.12 kB / 0.5475 GB, free: 10.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005102/0.4102, allocations: 411 kB / 0.5479 GB, free: 9.977 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4102, allocations: 0 / 0.5479 GB, free: 9.977 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009825/0.4112, allocations: 228 kB / 0.5481 GB, free: 9.754 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (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 (55): * Single equations (assignments): 54 * 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.001758/0.413, allocations: 1.531 MB / 0.5496 GB, free: 8.176 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001615/0.4146, allocations: 1.024 MB / 0.5506 GB, free: 7.117 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.4146, allocations: 4 kB / 0.5506 GB, free: 7.113 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000376/0.415, allocations: 266.2 kB / 0.5509 GB, free: 6.852 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008284/0.4158, allocations: 153.8 kB / 0.551 GB, free: 6.707 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009516/0.4253, allocations: 7.124 MB / 0.558 GB, free: 15.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006713/0.426, allocations: 1.078 MB / 0.559 GB, free: 14.09 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005214/0.4266, allocations: 197.8 kB / 0.5592 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004212/0.427, allocations: 331.2 kB / 0.5595 GB, free: 13.57 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.427, allocations: 4 kB / 0.5595 GB, free: 13.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04122/0.4682, allocations: 16.24 MB / 0.5754 GB, free: 13.51 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/11.11, allocations: 8 kB / 0.5754 GB, free: 13.5 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)