Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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.LocalGeneration,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_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.001867/0.001867, allocations: 108.8 kB / 17.06 MB, free: 6.016 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.002077/0.002077, allocations: 189.4 kB / 18 MB, free: 5.102 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.476/1.476, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1983/0.1983, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 67.89 kB / 457.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3269, allocations: 58.06 MB / 0.5036 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.009186/0.3361, allocations: 9.255 MB / 0.5127 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005443/0.3416, allocations: 3.249 MB / 0.5158 GB, free: 14.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008195/0.3425, allocations: 39.38 kB / 0.5159 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001413/0.3439, allocations: 410.4 kB / 0.5163 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002263/0.3462, allocations: 0.7974 MB / 0.517 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.3474, allocations: 472.5 kB / 0.5175 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002914/0.3503, allocations: 1.877 MB / 0.5193 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001784/0.3521, allocations: 1.121 MB / 0.5204 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001388/0.3535, allocations: 0.7474 MB / 0.5212 GB, free: 12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001245/0.3548, allocations: 0.813 MB / 0.5219 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002059/0.355, allocations: 138.8 kB / 0.5221 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008177/0.3558, allocations: 384.9 kB / 0.5224 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005336/0.3564, allocations: 0.4947 MB / 0.5229 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007849/0.3572, allocations: 0.6973 MB / 0.5236 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002495/0.3597, allocations: 1.996 MB / 0.5256 GB, free: 10.14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3597, allocations: 4 kB / 0.5256 GB, free: 10.13 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3597, allocations: 1.375 kB / 0.5256 GB, free: 10.13 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.393e-05/0.3597, allocations: 0 / 0.5256 GB, free: 10.13 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.003857/0.3636, allocations: 1.68 MB / 0.5272 GB, free: 9.059 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/0.3637, allocations: 10.48 kB / 0.5272 GB, free: 9.059 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002628/0.3639, allocations: 161.1 kB / 0.5274 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008493/0.3648, allocations: 194.8 kB / 0.5276 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001972/0.3668, allocations: 0.9535 MB / 0.5285 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.736e-05/0.3669, allocations: 80.5 kB / 0.5286 GB, free: 8.266 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002861/0.3672, allocations: 126 kB / 0.5287 GB, free: 8.223 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002439/0.3696, allocations: 1.348 MB / 0.53 GB, free: 7.559 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.937e-05/0.3697, allocations: 7 kB / 0.53 GB, free: 7.555 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/0.3698, allocations: 44.86 kB / 0.53 GB, free: 7.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001303/0.3699, allocations: 67.62 kB / 0.5301 GB, free: 7.504 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001881/0.3718, allocations: 1.071 MB / 0.5312 GB, free: 6.969 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.00743/0.3792, allocations: 5.107 MB / 0.5361 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.3805, allocations: 0.7612 MB / 0.5369 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005526/0.3811, allocations: 351.2 kB / 0.5372 GB, free: 2.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.735e-05/0.3811, allocations: 7.562 kB / 0.5372 GB, free: 2.117 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.3812, allocations: 38.69 kB / 0.5373 GB, free: 2.074 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.334e-06/0.3812, allocations: 0 / 0.5373 GB, free: 2.074 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.005991/0.3872, allocations: 2.715 MB / 0.5399 GB, free: 308 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.3873, allocations: 145 kB / 0.5401 GB, free: 140 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.3884, allocations: 0.7537 MB / 0.5408 GB, free: 15.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.887e-05/0.3884, allocations: 37.8 kB / 0.5408 GB, free: 15.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004735/0.3889, allocations: 0.5761 MB / 0.5414 GB, free: 15.15 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002384/0.3892, allocations: 264.2 kB / 0.5416 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002659/0.3894, allocations: 165.1 kB / 0.5418 GB, free: 14.81 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.3896, allocations: 334.7 kB / 0.5421 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005449/0.3902, allocations: 302.3 kB / 0.5424 GB, free: 14.33 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007729/0.391, allocations: 0.5496 MB / 0.5429 GB, free: 13.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.3923, allocations: 0.9041 MB / 0.5438 GB, free: 13.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.373e-06/0.3923, allocations: 3.094 kB / 0.5438 GB, free: 13.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.003057/0.3954, allocations: 1.34 MB / 0.5451 GB, free: 12.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.3954, allocations: 8.719 kB / 0.5452 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/0.3954, allocations: 8.188 kB / 0.5452 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001519/0.397, allocations: 428.9 kB / 0.5456 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007334/0.3977, allocations: 167.5 kB / 0.5457 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009349/0.4071, allocations: 5.285 MB / 0.5509 GB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008986/0.408, allocations: 43.92 kB / 0.5509 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.601e-05/0.4081, allocations: 32 kB / 0.551 GB, free: 7.152 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001025/0.4091, allocations: 0.5604 MB / 0.5515 GB, free: 6.59 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007293/0.4099, allocations: 0.5373 MB / 0.552 GB, free: 5.941 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001236/0.4111, allocations: 0.878 MB / 0.5529 GB, free: 4.957 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.51e-06/0.4111, allocations: 4 kB / 0.5529 GB, free: 4.953 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002675/0.4138, allocations: 1.27 MB / 0.5541 GB, free: 3.672 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.4138, allocations: 8 kB / 0.5541 GB, free: 3.664 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.4138, allocations: 11.94 kB / 0.5542 GB, free: 3.652 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/0.4152, allocations: 409.3 kB / 0.5545 GB, free: 3.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006356/0.4158, allocations: 163.8 kB / 0.5547 GB, free: 3.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007782/0.4236, allocations: 5.07 MB / 0.5597 GB, free: 13.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008009/0.4244, allocations: 31.98 kB / 0.5597 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.531e-05/0.4245, allocations: 36 kB / 0.5597 GB, free: 13.81 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.0003848/0.4249, allocations: 232.1 kB / 0.5599 GB, free: 13.58 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002085/0.4252, allocations: 95.33 kB / 0.56 GB, free: 13.48 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001624/0.4268, allocations: 0.8713 MB / 0.5609 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.4268, allocations: 8 kB / 0.5609 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.4268, allocations: 0 / 0.5609 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/0.4268, allocations: 7.984 kB / 0.5609 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003209/0.43, allocations: 1.86 MB / 0.5627 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.4301, allocations: 0 / 0.5627 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000844/0.4309, allocations: 159.8 kB / 0.5629 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-06/0.4309, allocations: 7.938 kB / 0.5629 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.613e-05/0.431, allocations: 23.92 kB / 0.5629 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.431, allocations: 4 kB / 0.5629 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.431, allocations: 0 / 0.5629 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.433, allocations: 1.276 MB / 0.5641 GB, free: 9.156 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003784/0.4334, allocations: 236.3 kB / 0.5644 GB, free: 8.906 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.4336, allocations: 16 kB / 0.5644 GB, free: 8.891 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004659/0.434, allocations: 31.98 kB / 0.5644 GB, free: 8.859 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.4341, allocations: 52.52 kB / 0.5645 GB, free: 8.809 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.694e-05/0.4342, allocations: 23.92 kB / 0.5645 GB, free: 8.785 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007357/0.4349, allocations: 0.5107 MB / 0.565 GB, free: 8.281 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.435, allocations: 0 / 0.565 GB, free: 8.281 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001765/0.4367, allocations: 463.9 kB / 0.5654 GB, free: 7.828 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.002513/0.4392, allocations: 1.863 MB / 0.5672 GB, free: 5.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00382/0.4431, allocations: 1.916 MB / 0.5691 GB, free: 3.984 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.758e-06/0.4431, allocations: 4.125 kB / 0.5691 GB, free: 3.98 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005901/0.4437, allocations: 347.5 kB / 0.5695 GB, free: 3.645 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.4451, allocations: 256.7 kB / 0.5697 GB, free: 3.398 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01549/0.4606, allocations: 9.133 MB / 0.5786 GB, free: 9.898 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009843/0.4616, allocations: 1.201 MB / 0.5798 GB, free: 8.668 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008357/0.4625, allocations: 247.3 kB / 0.58 GB, free: 8.426 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006263/0.4631, allocations: 435.3 kB / 0.5804 GB, free: 8 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4631, allocations: 0 / 0.5804 GB, free: 8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06657/0.5297, allocations: 27.66 MB / 0.6075 GB, free: 12.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.77/14.3, allocations: 6.516 kB / 0.6075 GB, free: 12.6 MB / 478.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & python3 -m fmpy simulate --output-file PowerSystems_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_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)