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.001411/0.001411, allocations: 107.1 kB / 17.06 MB, free: 6.125 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.001566/0.001566, allocations: 199 kB / 18 MB, free: 5.199 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.373/1.373, 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.1817/0.1817, allocations: 38.05 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001454, allocations: 59.91 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3597, allocations: 58.05 MB / 0.5036 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007244/0.367, allocations: 7.46 MB / 0.5109 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004072/0.3711, allocations: 2.978 MB / 0.5138 GB, free: 192 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004507/0.3716, allocations: 24.47 kB / 0.5138 GB, free: 184 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002043/0.3736, allocations: 0.7775 MB / 0.5146 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001839/0.3755, allocations: 0.6826 MB / 0.5153 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001047/0.3765, allocations: 387.2 kB / 0.5156 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001769/0.3783, allocations: 1.321 MB / 0.5169 GB, free: 14.6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009759/0.3793, allocations: 0.7543 MB / 0.5177 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001025/0.3803, allocations: 0.5619 MB / 0.5182 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001325/0.3817, allocations: 0.6283 MB / 0.5188 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001671/0.3819, allocations: 74.56 kB / 0.5189 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001175/0.383, allocations: 478.9 kB / 0.5194 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006191/0.3837, allocations: 456.2 kB / 0.5198 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006371/0.3843, allocations: 0.5097 MB / 0.5203 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00214/0.3865, allocations: 1.416 MB / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.718e-06/0.3865, allocations: 4 kB / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3865, allocations: 0 / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.864e-05/0.3865, 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.003146/0.3897, allocations: 1.266 MB / 0.5229 GB, free: 11.85 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.3898, allocations: 13.48 kB / 0.5229 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001659/0.3899, allocations: 138 kB / 0.5231 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00127/0.3912, allocations: 201 kB / 0.5232 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001836/0.3931, allocations: 0.7229 MB / 0.5239 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.14e-05/0.3931, allocations: 62.81 kB / 0.524 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002718/0.3934, allocations: 103.2 kB / 0.5241 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002087/0.3955, allocations: 1.113 MB / 0.5252 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.863e-05/0.3955, allocations: 2.375 kB / 0.5252 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.029e-05/0.3956, allocations: 39.64 kB / 0.5252 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001819/0.3958, allocations: 73.55 kB / 0.5253 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.3974, allocations: 0.8853 MB / 0.5262 GB, free: 10.4 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.00627/0.4036, allocations: 4.059 MB / 0.5301 GB, free: 7.566 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006475/0.4043, allocations: 415.8 kB / 0.5305 GB, free: 7.289 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003633/0.4047, allocations: 279.3 kB / 0.5308 GB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.745e-05/0.4047, allocations: 7.609 kB / 0.5308 GB, free: 7.137 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.4048, allocations: 37.62 kB / 0.5308 GB, free: 7.094 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.164e-06/0.4048, allocations: 0 / 0.5308 GB, free: 7.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.004232/0.409, allocations: 1.977 MB / 0.5328 GB, free: 5.918 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.025e-05/0.4091, allocations: 83.7 kB / 0.5328 GB, free: 5.824 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006731/0.4098, allocations: 0.5656 MB / 0.5334 GB, free: 5.488 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.161e-05/0.4098, allocations: 35.7 kB / 0.5334 GB, free: 5.449 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002831/0.4101, allocations: 473.2 kB / 0.5339 GB, free: 5.031 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.4103, allocations: 190.9 kB / 0.5341 GB, free: 4.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.4105, allocations: 147.2 kB / 0.5342 GB, free: 4.777 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.4106, allocations: 385.1 kB / 0.5346 GB, free: 4.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004005/0.411, allocations: 268.8 kB / 0.5348 GB, free: 4.281 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000609/0.4116, allocations: 0.5058 MB / 0.5353 GB, free: 3.836 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.003122/0.4148, allocations: 1.413 MB / 0.5367 GB, free: 2.926 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.4148, allocations: 2.156 kB / 0.5367 GB, free: 2.926 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001869/0.4167, allocations: 1.097 MB / 0.5378 GB, free: 2.289 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.4167, allocations: 7.875 kB / 0.5378 GB, free: 2.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001278/0.418, allocations: 0.7592 MB / 0.5385 GB, free: 1.848 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005287/0.4185, allocations: 159.8 kB / 0.5387 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006149/0.4192, allocations: 179.7 kB / 0.5389 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00392/0.4231, allocations: 4.847 MB / 0.5436 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006889/0.4238, allocations: 42.97 kB / 0.5436 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.787e-05/0.4239, allocations: 33.56 kB / 0.5437 GB, free: 12.99 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.0005975/0.4245, allocations: 316 kB / 0.544 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001393/0.4246, allocations: 74.06 kB / 0.544 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001138/0.4258, allocations: 0.6427 MB / 0.5447 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.4258, allocations: 5.5 kB / 0.5447 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.4258, allocations: 1.375 kB / 0.5447 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.4258, allocations: 5.359 kB / 0.5447 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002693/0.4285, allocations: 1.518 MB / 0.5462 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.4285, allocations: 2.156 kB / 0.5462 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006027/0.4292, allocations: 124.6 kB / 0.5463 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.008e-05/0.4292, allocations: 4.375 kB / 0.5463 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.328e-05/0.4292, allocations: 17.59 kB / 0.5463 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.836e-06/0.4293, allocations: 8.469 kB / 0.5463 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.4293, allocations: 5.75 kB / 0.5463 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.4306, allocations: 0.9554 MB / 0.5472 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003494/0.431, allocations: 184.2 kB / 0.5474 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.594e-05/0.4311, allocations: 19.98 kB / 0.5474 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003202/0.4314, allocations: 19.98 kB / 0.5475 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.774e-05/0.4315, allocations: 36.38 kB / 0.5475 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.232e-05/0.4315, allocations: 23.98 kB / 0.5475 GB, free: 10.36 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004622/0.432, allocations: 411 kB / 0.5479 GB, free: 9.953 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.432, allocations: 0 / 0.5479 GB, free: 9.953 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009807/0.433, allocations: 228 kB / 0.5481 GB, free: 9.73 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.001629/0.4346, allocations: 1.529 MB / 0.5496 GB, free: 8.156 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001629/0.4363, allocations: 1.024 MB / 0.5506 GB, free: 7.098 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4363, allocations: 0 / 0.5506 GB, free: 7.098 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003682/0.4367, allocations: 266.3 kB / 0.5509 GB, free: 6.836 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008309/0.4375, allocations: 153 kB / 0.551 GB, free: 6.695 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009733/0.4473, allocations: 7.126 MB / 0.558 GB, free: 15.18 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008711/0.4482, allocations: 1.082 MB / 0.559 GB, free: 14.07 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005807/0.4488, allocations: 209.7 kB / 0.5592 GB, free: 13.86 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004658/0.4493, allocations: 327.3 kB / 0.5595 GB, free: 13.54 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4493, allocations: 4 kB / 0.5595 GB, free: 13.54 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0446/0.4939, allocations: 16.24 MB / 0.5754 GB, free: 13.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/11.06, allocations: 15.86 kB / 0.5754 GB, free: 13.47 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)