Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.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.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",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.001217/0.001217, allocations: 109.8 kB / 17.06 MB, free: 5.977 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.001117/0.001118, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.381/1.381, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1864/0.1864, allocations: 38.02 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001255, allocations: 59.89 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3305, allocations: 58.06 MB / 0.5036 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.006453/0.337, allocations: 6.338 MB / 0.5098 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002262/0.3393, allocations: 1.442 MB / 0.5112 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003407/0.3397, allocations: 21.88 kB / 0.5112 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004965/0.3402, allocations: 152.1 kB / 0.5114 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008572/0.3411, allocations: 432.2 kB / 0.5118 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005153/0.3416, allocations: 209.7 kB / 0.512 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001207/0.3429, allocations: 1.117 MB / 0.5131 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004457/0.3433, allocations: 364.5 kB / 0.5134 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000712/0.344, allocations: 483.3 kB / 0.5139 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008001/0.3448, allocations: 0.5376 MB / 0.5144 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.345, allocations: 68.97 kB / 0.5145 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.3451, allocations: 66.47 kB / 0.5145 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003413/0.3455, allocations: 311.6 kB / 0.5148 GB, free: 444 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00043/0.3459, allocations: 377.7 kB / 0.5152 GB, free: 220 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001143/0.3471, allocations: 0.8739 MB / 0.5161 GB, free: 15.88 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.3471, allocations: 0 / 0.5161 GB, free: 15.88 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3471, allocations: 1.094 kB / 0.5161 GB, free: 15.88 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.677e-05/0.3471, allocations: 4 kB / 0.5161 GB, free: 15.88 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002449/0.3496, allocations: 1.045 MB / 0.5171 GB, free: 15.17 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.3496, allocations: 14.14 kB / 0.5171 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001398/0.3498, allocations: 96.77 kB / 0.5172 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000184/0.35, allocations: 82.31 kB / 0.5173 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001238/0.3512, allocations: 0.5933 MB / 0.5178 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001688/0.3514, allocations: 118.6 kB / 0.518 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.3515, allocations: 56.58 kB / 0.518 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.353, allocations: 0.778 MB / 0.5188 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.353, allocations: 1 kB / 0.5188 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.767e-05/0.3531, allocations: 28.75 kB / 0.5188 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/0.3532, allocations: 38.69 kB / 0.5188 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001405/0.3547, allocations: 0.6867 MB / 0.5195 GB, free: 13.98 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.004828/0.3595, allocations: 2.709 MB / 0.5222 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00183/0.3613, allocations: 0.8706 MB / 0.523 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006179/0.362, allocations: 327.8 kB / 0.5233 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.622e-05/0.362, allocations: 4.25 kB / 0.5233 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.169e-05/0.3621, allocations: 49.41 kB / 0.5234 GB, free: 11.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 3.026e-06/0.3621, allocations: 0 / 0.5234 GB, free: 11.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.004594/0.3667, allocations: 1.946 MB / 0.5253 GB, free: 10.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/0.3668, allocations: 86.23 kB / 0.5254 GB, free: 10.51 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006216/0.3674, allocations: 426.9 kB / 0.5258 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.257e-05/0.3675, allocations: 31.92 kB / 0.5258 GB, free: 10.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000253/0.3677, allocations: 323.2 kB / 0.5261 GB, free: 10.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.3679, allocations: 145.2 kB / 0.5262 GB, free: 9.906 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/0.3681, allocations: 88.8 kB / 0.5263 GB, free: 9.855 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.3682, allocations: 357.7 kB / 0.5267 GB, free: 9.523 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005302/0.3688, allocations: 235.4 kB / 0.5269 GB, free: 9.457 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006091/0.3694, allocations: 350.2 kB / 0.5272 GB, free: 9.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.3706, allocations: 0.584 MB / 0.5278 GB, free: 8.934 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.3706, allocations: 1.984 kB / 0.5278 GB, free: 8.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001639/0.3723, allocations: 0.7827 MB / 0.5286 GB, free: 8.566 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.3723, allocations: 4.156 kB / 0.5286 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.3723, allocations: 3.531 kB / 0.5286 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003019/0.3726, allocations: 79.83 kB / 0.5286 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001553/0.3742, allocations: 291.3 kB / 0.5289 GB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006856/0.3811, allocations: 6.521 MB / 0.5353 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005956/0.3817, allocations: 33.41 kB / 0.5353 GB, free: 2.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.605e-05/0.3817, allocations: 26.16 kB / 0.5353 GB, free: 2.281 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005243/0.3823, allocations: 239.5 kB / 0.5356 GB, free: 2.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.3824, allocations: 49.89 kB / 0.5356 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001541/0.384, allocations: 0.7345 MB / 0.5363 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.384, allocations: 3.906 kB / 0.5363 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.384, allocations: 1.125 kB / 0.5363 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.384, allocations: 1.125 kB / 0.5363 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002836/0.3868, allocations: 1.499 MB / 0.5378 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.3869, allocations: 1.031 kB / 0.5378 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001656/0.3885, allocations: 304.9 kB / 0.5381 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002855/0.3888, allocations: 90.23 kB / 0.5382 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.834e-05/0.3889, allocations: 8.156 kB / 0.5382 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002428/0.3913, allocations: 3.16 MB / 0.5413 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3913, allocations: 1.406 kB / 0.5413 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002069/0.3934, allocations: 1.126 MB / 0.5424 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002156/0.3936, allocations: 118.7 kB / 0.5425 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.889e-05/0.3938, allocations: 20.81 kB / 0.5425 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003848/0.3941, allocations: 27.69 kB / 0.5425 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.3943, allocations: 44.81 kB / 0.5426 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.3943, allocations: 7.344 kB / 0.5426 GB, free: 12.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003745/0.3947, allocations: 298.6 kB / 0.5429 GB, free: 12.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3947, allocations: 7.938 kB / 0.5429 GB, free: 12.11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007736/0.3955, allocations: 137.7 kB / 0.543 GB, free: 12.1 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * 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 (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002186/0.3977, allocations: 1.671 MB / 0.5446 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002667/0.4004, allocations: 0.9968 MB / 0.5456 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.4004, allocations: 4.375 kB / 0.5456 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00198/0.4024, allocations: 0.7249 MB / 0.5463 GB, free: 9.793 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008825/0.4033, allocations: 135.4 kB / 0.5465 GB, free: 9.727 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008461/0.4117, allocations: 5.51 MB / 0.5518 GB, free: 5.316 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005706/0.4123, allocations: 0.9526 MB / 0.5528 GB, free: 4.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003377/0.4127, allocations: 96.55 kB / 0.5529 GB, free: 4.246 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000286/0.413, allocations: 195.4 kB / 0.5531 GB, free: 4.059 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.413, allocations: 0 / 0.5531 GB, free: 4.059 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0406/0.4536, allocations: 12.86 MB / 0.5656 GB, free: 7.379 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.3, allocations: 12 kB / 0.5656 GB, free: 7.367 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1)