Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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.LocalGeneration,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",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.001854/0.001854, allocations: 110.2 kB / 17.06 MB, free: 5.793 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.002209/0.00221, allocations: 197.3 kB / 18.01 MB, free: 4.918 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.447/1.447, 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.1815/0.1815, allocations: 38.04 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 63.91 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3261, allocations: 58.07 MB / 0.5036 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01112/0.3372, allocations: 9.252 MB / 0.5127 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006287/0.3436, allocations: 3.246 MB / 0.5158 GB, free: 14.67 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009691/0.3446, allocations: 38.97 kB / 0.5159 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001529/0.3461, allocations: 418.6 kB / 0.5163 GB, free: 14.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002286/0.3484, allocations: 0.7923 MB / 0.517 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001254/0.3497, allocations: 480.4 kB / 0.5175 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003394/0.3531, allocations: 1.873 MB / 0.5193 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002019/0.3551, allocations: 1.117 MB / 0.5204 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001677/0.3568, allocations: 0.7549 MB / 0.5212 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001311/0.3581, allocations: 0.8051 MB / 0.522 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002283/0.3584, allocations: 140.1 kB / 0.5221 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008106/0.3592, allocations: 385.4 kB / 0.5225 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005264/0.3597, allocations: 0.4933 MB / 0.5229 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009149/0.3606, allocations: 0.7045 MB / 0.5236 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002788/0.3634, allocations: 1.994 MB / 0.5256 GB, free: 10.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3634, allocations: 0 / 0.5256 GB, free: 10.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3635, allocations: 3.938 kB / 0.5256 GB, free: 10.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.97e-05/0.3635, allocations: 5.531 kB / 0.5256 GB, free: 10.01 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: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.003753/0.3673, allocations: 1.67 MB / 0.5272 GB, free: 8.949 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.3673, allocations: 13.55 kB / 0.5272 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002507/0.3676, allocations: 169.8 kB / 0.5274 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000809/0.3684, allocations: 194.3 kB / 0.5276 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001922/0.3703, allocations: 0.9543 MB / 0.5285 GB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.79e-05/0.3704, allocations: 81.14 kB / 0.5286 GB, free: 8.145 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003036/0.3707, allocations: 124.2 kB / 0.5287 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002548/0.3733, allocations: 1.343 MB / 0.53 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.575e-05/0.3733, allocations: 2.688 kB / 0.53 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.3735, allocations: 44.67 kB / 0.5301 GB, free: 7.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001205/0.3736, allocations: 71.69 kB / 0.5301 GB, free: 7.418 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002042/0.3756, allocations: 1.075 MB / 0.5312 GB, free: 6.898 MB / 398.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 8.318498358936397e-4 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007842/0.3835, allocations: 5.099 MB / 0.5362 GB, free: 2.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.3849, allocations: 0.7689 MB / 0.5369 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006177/0.3855, allocations: 345 kB / 0.5372 GB, free: 2.051 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.066e-05/0.3856, allocations: 10.53 kB / 0.5372 GB, free: 2.047 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.465e-05/0.3856, allocations: 51.3 kB / 0.5373 GB, free: 1.992 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.766e-06/0.3856, allocations: 0 / 0.5373 GB, free: 1.992 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.006236/0.3919, allocations: 2.708 MB / 0.5399 GB, free: 228 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.034e-05/0.392, allocations: 140.6 kB / 0.5401 GB, free: 64 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001099/0.3931, allocations: 0.7511 MB / 0.5408 GB, free: 15.63 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.43e-05/0.3931, allocations: 40.61 kB / 0.5408 GB, free: 15.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005001/0.3937, allocations: 0.5757 MB / 0.5414 GB, free: 15.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002446/0.3939, allocations: 260.7 kB / 0.5417 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002748/0.3942, allocations: 164.7 kB / 0.5418 GB, free: 14.74 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.3944, allocations: 343 kB / 0.5421 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00054/0.3949, allocations: 303.3 kB / 0.5424 GB, free: 14.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007613/0.3957, allocations: 0.5496 MB / 0.543 GB, free: 13.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001366/0.3971, allocations: 0.9005 MB / 0.5438 GB, free: 13.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.3971, allocations: 1.375 kB / 0.5438 GB, free: 13.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.003068/0.4002, allocations: 1.345 MB / 0.5452 GB, free: 12.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.4002, allocations: 8.438 kB / 0.5452 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/0.4002, allocations: 8.25 kB / 0.5452 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001497/0.4017, allocations: 421.5 kB / 0.5456 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006983/0.4024, allocations: 170.4 kB / 0.5457 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009287/0.4118, allocations: 5.286 MB / 0.5509 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009639/0.4127, allocations: 43.91 kB / 0.5509 GB, free: 7.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.265e-05/0.4128, allocations: 36 kB / 0.551 GB, free: 7.125 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00105/0.4139, allocations: 0.5565 MB / 0.5515 GB, free: 6.566 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007374/0.4146, allocations: 0.5373 MB / 0.552 GB, free: 5.918 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001293/0.4159, allocations: 0.878 MB / 0.5529 GB, free: 4.934 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.75e-06/0.416, allocations: 4.156 kB / 0.5529 GB, free: 4.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002777/0.4187, allocations: 1.266 MB / 0.5541 GB, free: 3.652 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.4188, allocations: 8 kB / 0.5541 GB, free: 3.645 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.4188, allocations: 8 kB / 0.5542 GB, free: 3.637 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001363/0.4202, allocations: 409.3 kB / 0.5545 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006841/0.4209, allocations: 167.7 kB / 0.5547 GB, free: 3.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008266/0.4291, allocations: 5.066 MB / 0.5597 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009244/0.4301, allocations: 39.92 kB / 0.5597 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.1e-05/0.4302, allocations: 32 kB / 0.5597 GB, free: 13.79 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0003841/0.4306, allocations: 236 kB / 0.5599 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.4308, allocations: 99.33 kB / 0.56 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001671/0.4325, allocations: 0.8713 MB / 0.5609 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.4325, allocations: 8 kB / 0.5609 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.4325, allocations: 7.938 kB / 0.5609 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.4325, allocations: 3.984 kB / 0.5609 GB, free: 12.53 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00339/0.4359, allocations: 1.856 MB / 0.5627 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/0.4359, allocations: 4 kB / 0.5627 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008668/0.4368, allocations: 163.8 kB / 0.5629 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/0.4368, allocations: 4 kB / 0.5629 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.441e-05/0.4369, allocations: 19.94 kB / 0.5629 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-06/0.4369, allocations: 4 kB / 0.5629 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4369, allocations: 0 / 0.5629 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001957/0.4389, allocations: 1.276 MB / 0.5642 GB, free: 9.125 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003871/0.4393, allocations: 232.3 kB / 0.5644 GB, free: 8.879 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000126/0.4394, allocations: 20 kB / 0.5644 GB, free: 8.859 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004704/0.4399, allocations: 27.98 kB / 0.5644 GB, free: 8.832 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.194e-05/0.44, allocations: 40.59 kB / 0.5645 GB, free: 8.793 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-05/0.44, allocations: 20 kB / 0.5645 GB, free: 8.773 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007337/0.4408, allocations: 0.5146 MB / 0.565 GB, free: 8.266 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4408, allocations: 0 / 0.565 GB, free: 8.266 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001877/0.4427, allocations: 459.9 kB / 0.5654 GB, free: 7.816 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * 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 (77): * Single equations (assignments): 76 * 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.002705/0.4454, allocations: 1.879 MB / 0.5673 GB, free: 5.902 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004061/0.4495, allocations: 1.92 MB / 0.5691 GB, free: 3.953 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4495, allocations: 0 / 0.5691 GB, free: 3.953 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006163/0.4501, allocations: 351.5 kB / 0.5695 GB, free: 3.613 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.4515, allocations: 252 kB / 0.5697 GB, free: 3.375 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01591/0.4675, allocations: 9.129 MB / 0.5786 GB, free: 9.883 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009679/0.4685, allocations: 1.205 MB / 0.5798 GB, free: 8.648 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008077/0.4693, allocations: 247.4 kB / 0.58 GB, free: 8.402 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000618/0.4699, allocations: 435.3 kB / 0.5805 GB, free: 7.977 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4699, allocations: 0 / 0.5805 GB, free: 7.977 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07125/0.5412, allocations: 27.67 MB / 0.6075 GB, free: 12.59 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.25/13.79, allocations: 11.94 kB / 0.6075 GB, free: 12.58 MB / 478.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)