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.001082/0.001082, allocations: 112.8 kB / 17.07 MB, free: 5.988 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.0009806/0.0009806, allocations: 195 kB / 18 MB, free: 5.074 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.39/1.39, 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.1834/0.1834, allocations: 38.05 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 67.89 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3539, allocations: 58.06 MB / 0.5036 GB, free: 7.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.008005/0.3619, allocations: 7.455 MB / 0.5109 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005247/0.3672, allocations: 2.977 MB / 0.5138 GB, free: 128 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008323/0.368, allocations: 28.97 kB / 0.5138 GB, free: 116 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002561/0.3706, allocations: 0.7757 MB / 0.5146 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002943/0.3736, allocations: 0.7027 MB / 0.5153 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00147/0.3751, allocations: 374.4 kB / 0.5156 GB, free: 15.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004542/0.3796, allocations: 1.33 MB / 0.5169 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002207/0.3819, allocations: 0.7374 MB / 0.5177 GB, free: 14.21 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002279/0.3842, allocations: 0.5657 MB / 0.5182 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002772/0.387, allocations: 0.6319 MB / 0.5188 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003044/0.3873, allocations: 74.81 kB / 0.5189 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001961/0.3893, allocations: 478.9 kB / 0.5194 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009512/0.3903, allocations: 456.9 kB / 0.5198 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001112/0.3914, allocations: 0.5059 MB / 0.5203 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003602/0.395, allocations: 1.426 MB / 0.5217 GB, free: 12.63 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.3951, allocations: 0 / 0.5217 GB, free: 12.63 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.519e-06/0.3951, allocations: 1.094 kB / 0.5217 GB, free: 12.63 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.971e-05/0.3951, allocations: 0 / 0.5217 GB, free: 12.63 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.003623/0.3988, allocations: 1.295 MB / 0.5229 GB, free: 11.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.3988, allocations: 12.11 kB / 0.523 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000249/0.3991, allocations: 139.5 kB / 0.5231 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00204/0.4011, allocations: 213.3 kB / 0.5233 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001838/0.403, allocations: 0.7276 MB / 0.524 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.383e-05/0.4031, allocations: 65.64 kB / 0.5241 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002284/0.4033, allocations: 88.16 kB / 0.5242 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001808/0.4051, allocations: 1.116 MB / 0.5252 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.375e-05/0.4052, allocations: 7.203 kB / 0.5253 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-05/0.4052, allocations: 31.16 kB / 0.5253 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001724/0.4054, allocations: 73.36 kB / 0.5253 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001482/0.4069, allocations: 0.8896 MB / 0.5262 GB, free: 10.29 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.006016/0.4129, allocations: 4.07 MB / 0.5302 GB, free: 7.488 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006236/0.4136, allocations: 421.5 kB / 0.5306 GB, free: 7.203 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003548/0.414, allocations: 266.7 kB / 0.5309 GB, free: 7.066 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.912e-05/0.414, allocations: 8.375 kB / 0.5309 GB, free: 7.062 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.414, allocations: 41.64 kB / 0.5309 GB, free: 7.016 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.294e-06/0.414, allocations: 0 / 0.5309 GB, free: 7.016 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.004326/0.4184, allocations: 2.011 MB / 0.5329 GB, free: 5.809 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.4184, allocations: 86.02 kB / 0.5329 GB, free: 5.711 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007567/0.4192, allocations: 0.5671 MB / 0.5335 GB, free: 5.375 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.464e-05/0.4193, allocations: 34.98 kB / 0.5335 GB, free: 5.336 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003587/0.4196, allocations: 487.5 kB / 0.534 GB, free: 4.906 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.4198, allocations: 194.7 kB / 0.5342 GB, free: 4.738 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002379/0.4201, allocations: 156.2 kB / 0.5343 GB, free: 4.641 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002087/0.4203, allocations: 380.6 kB / 0.5347 GB, free: 4.277 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004547/0.4208, allocations: 268.9 kB / 0.535 GB, free: 4.148 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000657/0.4214, allocations: 0.5014 MB / 0.5354 GB, free: 3.707 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.002974/0.4244, allocations: 1.402 MB / 0.5368 GB, free: 2.809 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.4244, allocations: 2.344 kB / 0.5368 GB, free: 2.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00198/0.4264, allocations: 1.096 MB / 0.5379 GB, free: 2.172 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.4264, allocations: 8.25 kB / 0.5379 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001181/0.4276, allocations: 0.7599 MB / 0.5386 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005183/0.4282, allocations: 167.6 kB / 0.5388 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005842/0.4288, allocations: 171.7 kB / 0.539 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004204/0.433, allocations: 4.855 MB / 0.5437 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007733/0.4338, allocations: 39.22 kB / 0.5437 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-05/0.4338, allocations: 34.11 kB / 0.5438 GB, free: 12.86 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.0005277/0.4344, allocations: 318.6 kB / 0.5441 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.4345, allocations: 79.08 kB / 0.5441 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001019/0.4355, allocations: 0.6434 MB / 0.5448 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.4356, allocations: 6.469 kB / 0.5448 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.4356, allocations: 0 / 0.5448 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.4356, allocations: 4.984 kB / 0.5448 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002528/0.4381, allocations: 1.523 MB / 0.5463 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.4381, allocations: 1.75 kB / 0.5463 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005736/0.4387, allocations: 128.6 kB / 0.5464 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.4387, allocations: 3.875 kB / 0.5464 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.905e-05/0.4388, allocations: 14.58 kB / 0.5464 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.4388, allocations: 8.219 kB / 0.5464 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.4388, allocations: 5.344 kB / 0.5464 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.44, allocations: 0.9605 MB / 0.5474 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003175/0.4403, allocations: 184.7 kB / 0.5475 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.258e-05/0.4404, allocations: 16 kB / 0.5476 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003133/0.4407, allocations: 19.98 kB / 0.5476 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.319e-05/0.4408, allocations: 40.27 kB / 0.5476 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.658e-05/0.4408, allocations: 16 kB / 0.5476 GB, free: 10.24 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004494/0.4413, allocations: 411 kB / 0.548 GB, free: 9.832 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4413, allocations: 0 / 0.548 GB, free: 9.832 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008786/0.4422, allocations: 239.9 kB / 0.5482 GB, free: 9.598 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.001674/0.4439, allocations: 1.529 MB / 0.5497 GB, free: 8.023 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.4455, allocations: 1.027 MB / 0.5507 GB, free: 6.961 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.4455, allocations: 4 kB / 0.5508 GB, free: 6.957 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003654/0.4459, allocations: 270.2 kB / 0.551 GB, free: 6.691 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007913/0.4467, allocations: 152.6 kB / 0.5512 GB, free: 6.551 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009136/0.4558, allocations: 7.146 MB / 0.5581 GB, free: 15.02 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006919/0.4565, allocations: 1.082 MB / 0.5592 GB, free: 13.91 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005668/0.4571, allocations: 197.8 kB / 0.5594 GB, free: 13.71 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004223/0.4575, allocations: 327.3 kB / 0.5597 GB, free: 13.39 MB / 430.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4575, allocations: 0 / 0.5597 GB, free: 13.39 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04143/0.499, allocations: 16 MB / 0.5753 GB, free: 13.58 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/11.14, allocations: 3.938 kB / 0.5753 GB, free: 13.57 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle_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_PowerAngle.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)