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.001185/0.001185, allocations: 112.7 kB / 17.07 MB, free: 5.992 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.001035/0.001035, allocations: 196 kB / 18.01 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.328/1.328, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1715/0.1715, allocations: 38.04 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 75.89 kB / 457.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3133, allocations: 58.06 MB / 0.5036 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.009175/0.3225, allocations: 9.248 MB / 0.5127 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005271/0.3278, allocations: 3.245 MB / 0.5158 GB, free: 14.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007808/0.3286, allocations: 43.69 kB / 0.5159 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001394/0.33, allocations: 419 kB / 0.5163 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002148/0.3322, allocations: 0.802 MB / 0.5171 GB, free: 13.97 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.3333, allocations: 473 kB / 0.5175 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002713/0.336, allocations: 1.875 MB / 0.5193 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001637/0.3377, allocations: 1.121 MB / 0.5204 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0012/0.3389, allocations: 0.7671 MB / 0.5212 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.3402, allocations: 0.8098 MB / 0.522 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002171/0.3404, allocations: 139.3 kB / 0.5221 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007098/0.3412, allocations: 381.6 kB / 0.5225 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004794/0.3417, allocations: 0.494 MB / 0.5229 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007679/0.3424, allocations: 0.6995 MB / 0.5236 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003078/0.3455, allocations: 1.998 MB / 0.5256 GB, free: 10.03 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.3455, allocations: 4 kB / 0.5256 GB, free: 10.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.3456, allocations: 0 / 0.5256 GB, free: 10.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.648e-05/0.3456, allocations: 1.062 kB / 0.5256 GB, free: 10.02 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.003547/0.3492, allocations: 1.673 MB / 0.5272 GB, free: 8.957 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.3492, allocations: 12.77 kB / 0.5272 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002182/0.3494, allocations: 166 kB / 0.5274 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008074/0.3503, allocations: 194.8 kB / 0.5276 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/0.3521, allocations: 0.9566 MB / 0.5285 GB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.012e-05/0.3522, allocations: 85.25 kB / 0.5286 GB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002906/0.3525, allocations: 126.2 kB / 0.5287 GB, free: 8.105 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002298/0.3548, allocations: 1.342 MB / 0.53 GB, free: 7.469 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.478e-05/0.3549, allocations: 1.797 kB / 0.53 GB, free: 7.469 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001137/0.355, allocations: 46.48 kB / 0.5301 GB, free: 7.434 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.3551, allocations: 66.69 kB / 0.5301 GB, free: 7.426 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/0.3571, allocations: 1.082 MB / 0.5312 GB, free: 6.934 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.007288/0.3644, allocations: 5.099 MB / 0.5362 GB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.3656, allocations: 0.7575 MB / 0.5369 GB, free: 2.281 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005222/0.3661, allocations: 345.3 kB / 0.5372 GB, free: 2.098 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.76e-05/0.3662, allocations: 15.2 kB / 0.5373 GB, free: 2.09 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/0.3662, allocations: 38.16 kB / 0.5373 GB, free: 2.047 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.825e-06/0.3662, allocations: 9.094 kB / 0.5373 GB, free: 2.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.006194/0.3724, allocations: 2.712 MB / 0.5399 GB, free: 276 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.728e-05/0.3725, allocations: 144.4 kB / 0.5401 GB, free: 108 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009564/0.3735, allocations: 0.7471 MB / 0.5408 GB, free: 15.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.644e-05/0.3736, allocations: 36.23 kB / 0.5408 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004704/0.374, allocations: 0.5794 MB / 0.5414 GB, free: 15.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002576/0.3743, allocations: 261.4 kB / 0.5417 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002854/0.3746, allocations: 161.3 kB / 0.5418 GB, free: 14.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.3748, allocations: 347.6 kB / 0.5421 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005726/0.3753, allocations: 297.5 kB / 0.5424 GB, free: 14.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007136/0.3761, allocations: 0.5504 MB / 0.543 GB, free: 13.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.3773, allocations: 0.9032 MB / 0.5439 GB, free: 13.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.3773, allocations: 3.344 kB / 0.5439 GB, free: 13.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002925/0.3802, allocations: 1.34 MB / 0.5452 GB, free: 12.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.3803, allocations: 7.906 kB / 0.5452 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.3803, allocations: 8.5 kB / 0.5452 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/0.3817, allocations: 430.1 kB / 0.5456 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006236/0.3824, allocations: 170.2 kB / 0.5458 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008383/0.3907, allocations: 5.291 MB / 0.5509 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008912/0.3917, allocations: 39.92 kB / 0.551 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.637e-05/0.3918, allocations: 36.16 kB / 0.551 GB, free: 7.082 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001041/0.3928, allocations: 0.5643 MB / 0.5515 GB, free: 6.516 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006757/0.3935, allocations: 0.5334 MB / 0.5521 GB, free: 5.871 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001242/0.3947, allocations: 0.878 MB / 0.5529 GB, free: 4.887 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.33e-06/0.3948, allocations: 0 / 0.5529 GB, free: 4.887 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002676/0.3974, allocations: 1.274 MB / 0.5542 GB, free: 3.602 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3975, allocations: 8 kB / 0.5542 GB, free: 3.594 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.3975, allocations: 8.312 kB / 0.5542 GB, free: 3.586 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001246/0.3987, allocations: 401 kB / 0.5546 GB, free: 3.191 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006299/0.3994, allocations: 171.7 kB / 0.5547 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007001/0.4064, allocations: 5.054 MB / 0.5597 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007601/0.4072, allocations: 35.98 kB / 0.5597 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.972e-05/0.4072, allocations: 40 kB / 0.5597 GB, free: 13.75 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.0002733/0.4075, allocations: 232 kB / 0.56 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/0.4077, allocations: 99.33 kB / 0.56 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001429/0.4091, allocations: 0.8752 MB / 0.5609 GB, free: 12.51 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.4092, allocations: 8 kB / 0.5609 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.4092, allocations: 0 / 0.5609 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.415e-06/0.4092, allocations: 3.984 kB / 0.5609 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/0.412, allocations: 1.864 MB / 0.5627 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.4121, allocations: 0 / 0.5627 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008279/0.4129, allocations: 163.7 kB / 0.5629 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.616e-06/0.4129, allocations: 4 kB / 0.5629 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.025e-05/0.413, allocations: 23.94 kB / 0.5629 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.221e-06/0.413, allocations: 8.031 kB / 0.5629 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.413, allocations: 3.984 kB / 0.5629 GB, free: 10.37 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001685/0.4147, allocations: 1.268 MB / 0.5642 GB, free: 9.086 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000354/0.415, allocations: 240.3 kB / 0.5644 GB, free: 8.832 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.4152, allocations: 20 kB / 0.5644 GB, free: 8.812 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004741/0.4157, allocations: 27.98 kB / 0.5644 GB, free: 8.785 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.064e-05/0.4157, allocations: 40.59 kB / 0.5645 GB, free: 8.746 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.239e-05/0.4158, allocations: 20 kB / 0.5645 GB, free: 8.727 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006327/0.4164, allocations: 0.5107 MB / 0.565 GB, free: 8.223 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4164, allocations: 0 / 0.565 GB, free: 8.223 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001574/0.418, allocations: 463.9 kB / 0.5654 GB, free: 7.77 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.00229/0.4203, allocations: 1.88 MB / 0.5673 GB, free: 5.855 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003411/0.4237, allocations: 1.911 MB / 0.5691 GB, free: 3.914 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.4238, allocations: 0 / 0.5691 GB, free: 3.914 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005214/0.4243, allocations: 355.5 kB / 0.5695 GB, free: 3.57 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.4255, allocations: 250.7 kB / 0.5697 GB, free: 3.332 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01524/0.4408, allocations: 9.135 MB / 0.5786 GB, free: 9.836 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008309/0.4417, allocations: 1.201 MB / 0.5798 GB, free: 8.605 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008023/0.4425, allocations: 243.4 kB / 0.58 GB, free: 8.363 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000549/0.443, allocations: 435.3 kB / 0.5805 GB, free: 7.938 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.443, allocations: 0 / 0.5805 GB, free: 7.938 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05338/0.4964, allocations: 27.67 MB / 0.6075 GB, free: 12.52 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.36, allocations: 3.984 kB / 0.6075 GB, free: 12.52 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)