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.001726/0.001726, allocations: 109 kB / 17.05 MB, free: 6.059 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.001697/0.001698, allocations: 195.9 kB / 17.99 MB, free: 5.156 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.419/1.419, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1785/0.1785, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 59.91 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.335, allocations: 58.06 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007254/0.3423, allocations: 7.454 MB / 0.5109 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003972/0.3463, allocations: 2.973 MB / 0.5138 GB, free: 188 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003397/0.3466, allocations: 26.03 kB / 0.5138 GB, free: 180 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001946/0.3486, allocations: 0.7776 MB / 0.5146 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001578/0.3502, allocations: 0.6934 MB / 0.5153 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009206/0.3511, allocations: 377.2 kB / 0.5156 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.3527, allocations: 1.322 MB / 0.5169 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009631/0.3537, allocations: 0.7473 MB / 0.5176 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008187/0.3545, allocations: 0.5554 MB / 0.5182 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000983/0.3555, allocations: 0.6289 MB / 0.5188 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.3556, allocations: 73.53 kB / 0.5189 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000863/0.3565, allocations: 474.9 kB / 0.5193 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004853/0.357, allocations: 460.3 kB / 0.5198 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005754/0.3576, allocations: 0.5106 MB / 0.5203 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001753/0.3593, allocations: 1.426 MB / 0.5217 GB, free: 12.69 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.3594, allocations: 0 / 0.5217 GB, free: 12.69 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.3594, allocations: 0 / 0.5217 GB, free: 12.69 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.3594, allocations: 1.156 kB / 0.5217 GB, free: 12.69 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.002372/0.3618, allocations: 1.292 MB / 0.5229 GB, free: 11.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.3618, allocations: 13.48 kB / 0.5229 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000181/0.362, allocations: 138 kB / 0.5231 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001176/0.3632, allocations: 215.4 kB / 0.5233 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001406/0.3646, allocations: 0.7261 MB / 0.524 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.527e-05/0.3647, allocations: 62.62 kB / 0.524 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002241/0.3649, allocations: 100.9 kB / 0.5241 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001787/0.3667, allocations: 1.112 MB / 0.5252 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.022e-05/0.3667, allocations: 1.75 kB / 0.5252 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.592e-05/0.3668, allocations: 36.45 kB / 0.5253 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001911/0.367, allocations: 81 kB / 0.5253 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001486/0.3685, allocations: 0.8822 MB / 0.5262 GB, free: 10.36 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.005618/0.3742, allocations: 4.069 MB / 0.5302 GB, free: 7.527 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006329/0.3748, allocations: 417 kB / 0.5306 GB, free: 7.246 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000367/0.3752, allocations: 272.2 kB / 0.5308 GB, free: 7.105 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.847e-05/0.3752, allocations: 17.33 kB / 0.5308 GB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.3753, allocations: 39.42 kB / 0.5309 GB, free: 7.047 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.384e-06/0.3753, allocations: 0 / 0.5309 GB, free: 7.047 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.004781/0.3801, allocations: 1.996 MB / 0.5328 GB, free: 5.855 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/0.3802, allocations: 82.92 kB / 0.5329 GB, free: 5.762 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008831/0.3811, allocations: 0.5696 MB / 0.5335 GB, free: 5.422 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.087e-05/0.3811, allocations: 39.7 kB / 0.5335 GB, free: 5.379 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004271/0.3816, allocations: 482.5 kB / 0.534 GB, free: 4.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002125/0.3818, allocations: 200.1 kB / 0.5342 GB, free: 4.781 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002551/0.382, allocations: 151.5 kB / 0.5343 GB, free: 4.688 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002353/0.3823, allocations: 384.1 kB / 0.5347 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004997/0.3828, allocations: 268.8 kB / 0.5349 GB, free: 4.191 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007358/0.3835, allocations: 0.5058 MB / 0.5354 GB, free: 3.746 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.003733/0.3873, allocations: 1.406 MB / 0.5368 GB, free: 2.844 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.677e-06/0.3873, allocations: 2.219 kB / 0.5368 GB, free: 2.844 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002247/0.3896, allocations: 1.1 MB / 0.5379 GB, free: 2.207 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.3896, allocations: 8.312 kB / 0.5379 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001471/0.3911, allocations: 0.7657 MB / 0.5386 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005425/0.3916, allocations: 156.2 kB / 0.5388 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006381/0.3923, allocations: 178.7 kB / 0.5389 GB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004976/0.3973, allocations: 4.852 MB / 0.5437 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007936/0.3981, allocations: 39.22 kB / 0.5437 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-05/0.3982, allocations: 34.11 kB / 0.5437 GB, free: 12.9 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.0006302/0.3988, allocations: 318.7 kB / 0.5441 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.3989, allocations: 75.16 kB / 0.5441 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001215/0.4002, allocations: 0.6438 MB / 0.5448 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.4002, allocations: 5.594 kB / 0.5448 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.4002, allocations: 0 / 0.5448 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.4002, allocations: 5.203 kB / 0.5448 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002609/0.4028, allocations: 1.516 MB / 0.5462 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.4028, allocations: 1.406 kB / 0.5462 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006065/0.4035, allocations: 128.1 kB / 0.5464 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.4035, allocations: 8.5 kB / 0.5464 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.391e-05/0.4035, allocations: 23.08 kB / 0.5464 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.4035, allocations: 2.844 kB / 0.5464 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.4036, allocations: 6.656 kB / 0.5464 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/0.405, allocations: 0.9586 MB / 0.5473 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002821/0.4053, allocations: 180.8 kB / 0.5475 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.956e-05/0.4054, allocations: 20 kB / 0.5475 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003176/0.4057, allocations: 19.98 kB / 0.5476 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.871e-05/0.4058, allocations: 36.33 kB / 0.5476 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.281e-05/0.4058, allocations: 16.05 kB / 0.5476 GB, free: 10.28 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005122/0.4063, allocations: 419 kB / 0.548 GB, free: 9.867 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4064, allocations: 0 / 0.548 GB, free: 9.867 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009467/0.4073, allocations: 231.9 kB / 0.5482 GB, free: 9.641 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.00192/0.4092, allocations: 1.545 MB / 0.5497 GB, free: 8.051 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.411, allocations: 1.024 MB / 0.5507 GB, free: 6.992 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.411, allocations: 4 kB / 0.5507 GB, free: 6.988 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004141/0.4114, allocations: 266.3 kB / 0.551 GB, free: 6.727 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000819/0.4122, allocations: 150.7 kB / 0.5511 GB, free: 6.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01032/0.4226, allocations: 7.147 MB / 0.5581 GB, free: 15.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007836/0.4234, allocations: 1.078 MB / 0.5592 GB, free: 13.95 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000554/0.424, allocations: 205.7 kB / 0.5594 GB, free: 13.74 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004507/0.4244, allocations: 323.3 kB / 0.5597 GB, free: 13.43 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4244, allocations: 3.938 kB / 0.5597 GB, free: 13.42 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0526/0.477, allocations: 16 MB / 0.5753 GB, free: 13.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.74, allocations: 7.938 kB / 0.5753 GB, free: 13.6 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)