Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_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.001278/0.001278, allocations: 111.8 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.001241/0.001241, allocations: 197.3 kB / 18.01 MB, free: 5.062 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.407/1.407, 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/package.mo): time 0.1748/0.1748, allocations: 38.04 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 67.88 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3388, allocations: 58.06 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007249/0.3461, allocations: 7.453 MB / 0.5109 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00577/0.3519, allocations: 2.977 MB / 0.5138 GB, free: 208 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008787/0.3529, allocations: 28.66 kB / 0.5138 GB, free: 196 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002396/0.3553, allocations: 0.7761 MB / 0.5146 GB, free: 15.72 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003537/0.3589, allocations: 0.693 MB / 0.5153 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001932/0.3609, allocations: 381.1 kB / 0.5156 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003893/0.3648, allocations: 1.325 MB / 0.5169 GB, free: 14.6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001812/0.3666, allocations: 0.7414 MB / 0.5177 GB, free: 14.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001979/0.3686, allocations: 0.555 MB / 0.5182 GB, free: 14.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002078/0.3707, allocations: 0.6289 MB / 0.5188 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002476/0.371, allocations: 73.97 kB / 0.5189 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001901/0.3729, allocations: 478.8 kB / 0.5193 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001016/0.3739, allocations: 456.5 kB / 0.5198 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001114/0.3751, allocations: 0.5037 MB / 0.5203 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003708/0.3788, allocations: 1.433 MB / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.3788, allocations: 0 / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3788, allocations: 0 / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.178e-05/0.3789, allocations: 1.438 kB / 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.004374/0.3833, allocations: 1.286 MB / 0.5229 GB, free: 11.83 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.919e-05/0.3834, allocations: 12.55 kB / 0.5229 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002766/0.3837, allocations: 143.2 kB / 0.5231 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001833/0.3855, allocations: 209.7 kB / 0.5233 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002569/0.3881, allocations: 0.7236 MB / 0.524 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.588e-05/0.3882, allocations: 67.12 kB / 0.524 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004404/0.3887, allocations: 99.27 kB / 0.5241 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002883/0.3916, allocations: 1.112 MB / 0.5252 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.21e-05/0.3916, allocations: 0.7188 kB / 0.5252 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.603e-05/0.3917, allocations: 37.02 kB / 0.5253 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001945/0.3919, allocations: 68.33 kB / 0.5253 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001731/0.3937, allocations: 0.8907 MB / 0.5262 GB, free: 10.38 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.00889/0.4026, allocations: 4.07 MB / 0.5302 GB, free: 7.555 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009019/0.4035, allocations: 418.5 kB / 0.5306 GB, free: 7.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005466/0.4041, allocations: 278 kB / 0.5308 GB, free: 7.125 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.544e-05/0.4041, allocations: 3.938 kB / 0.5308 GB, free: 7.125 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/0.4042, allocations: 38.5 kB / 0.5309 GB, free: 7.082 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 3.486e-06/0.4042, allocations: 0 / 0.5309 GB, free: 7.082 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.00652/0.4107, allocations: 2.002 MB / 0.5328 GB, free: 5.883 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.558e-05/0.4109, allocations: 83.33 kB / 0.5329 GB, free: 5.789 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/0.412, allocations: 0.5744 MB / 0.5335 GB, free: 5.445 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.176e-05/0.4121, allocations: 30.89 kB / 0.5335 GB, free: 5.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005502/0.4127, allocations: 487 kB / 0.534 GB, free: 4.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002911/0.413, allocations: 203.9 kB / 0.5342 GB, free: 4.805 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003239/0.4133, allocations: 147.2 kB / 0.5343 GB, free: 4.715 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002881/0.4136, allocations: 385 kB / 0.5347 GB, free: 4.348 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006695/0.4143, allocations: 272.9 kB / 0.5349 GB, free: 4.215 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009451/0.4152, allocations: 0.5095 MB / 0.5354 GB, free: 3.766 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.003866/0.4191, allocations: 1.405 MB / 0.5368 GB, free: 2.863 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-05/0.4192, allocations: 3.312 kB / 0.5368 GB, free: 2.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002758/0.4219, allocations: 1.1 MB / 0.5379 GB, free: 2.223 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.881e-05/0.422, allocations: 8.125 kB / 0.5379 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001459/0.4234, allocations: 0.7545 MB / 0.5386 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006138/0.4241, allocations: 164.1 kB / 0.5388 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007069/0.4248, allocations: 175.7 kB / 0.5389 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00551/0.4303, allocations: 4.847 MB / 0.5437 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008826/0.4312, allocations: 43.25 kB / 0.5437 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/0.4314, allocations: 34.45 kB / 0.5437 GB, free: 12.93 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.0008183/0.4322, allocations: 323 kB / 0.5441 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002509/0.4324, allocations: 78.27 kB / 0.5441 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001335/0.4338, allocations: 0.6396 MB / 0.5448 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.4338, allocations: 5.5 kB / 0.5448 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.4338, allocations: 1.375 kB / 0.5448 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.4338, allocations: 3.984 kB / 0.5448 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0034/0.4372, allocations: 1.515 MB / 0.5462 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.4373, allocations: 6.781 kB / 0.5462 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006361/0.4379, allocations: 119.9 kB / 0.5464 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.479e-05/0.4379, allocations: 7.859 kB / 0.5464 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-05/0.438, allocations: 14.31 kB / 0.5464 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.979e-06/0.438, allocations: 9.125 kB / 0.5464 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.438, allocations: 4.969 kB / 0.5464 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001703/0.4397, allocations: 0.9628 MB / 0.5473 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004486/0.4402, allocations: 184.7 kB / 0.5475 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000172/0.4404, allocations: 12 kB / 0.5475 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004377/0.4408, allocations: 23.97 kB / 0.5475 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.28e-05/0.4409, allocations: 36.34 kB / 0.5476 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.698e-05/0.441, allocations: 15.98 kB / 0.5476 GB, free: 10.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006698/0.4416, allocations: 411 kB / 0.548 GB, free: 9.867 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4417, allocations: 0 / 0.548 GB, free: 9.867 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001177/0.4428, allocations: 235.9 kB / 0.5482 GB, free: 9.637 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.002221/0.4451, allocations: 1.551 MB / 0.5497 GB, free: 8.043 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002127/0.4472, allocations: 1.022 MB / 0.5507 GB, free: 6.984 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.166e-05/0.4472, allocations: 7.938 kB / 0.5507 GB, free: 6.977 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004887/0.4477, allocations: 259.8 kB / 0.551 GB, free: 6.723 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009895/0.4487, allocations: 143.6 kB / 0.5511 GB, free: 6.586 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01368/0.4624, allocations: 7.154 MB / 0.5581 GB, free: 15.04 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001176/0.4637, allocations: 1.09 MB / 0.5592 GB, free: 13.93 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006559/0.4644, allocations: 205.8 kB / 0.5594 GB, free: 13.72 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005548/0.4649, allocations: 319.3 kB / 0.5597 GB, free: 13.41 MB / 430.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4649, allocations: 0 / 0.5597 GB, free: 13.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05812/0.5231, allocations: 15.98 MB / 0.5753 GB, free: 13.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.4, allocations: 6.969 kB / 0.5753 GB, free: 13.57 MB / 446.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_PowerAngle_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_PowerAngle.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)