Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.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.AC3ph.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_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.001229/0.001229, allocations: 112 kB / 17.06 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.001258/0.001258, allocations: 193.4 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.444/1.444, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2208/0.2208, allocations: 38.03 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003258/0.003258, allocations: 63.83 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.3962, allocations: 58.06 MB / 0.5036 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.Rectifier): time 0.0082/0.4044, allocations: 6.688 MB / 0.5102 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003787/0.4082, allocations: 2.121 MB / 0.5122 GB, free: 1.328 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005087/0.4088, allocations: 28.06 kB / 0.5122 GB, free: 1.316 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001458/0.4103, allocations: 0.4954 MB / 0.5127 GB, free: 1.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001479/0.4117, allocations: 0.5615 MB / 0.5133 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009698/0.4127, allocations: 359.4 kB / 0.5136 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001606/0.4144, allocations: 1.298 MB / 0.5149 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001103/0.4155, allocations: 0.7269 MB / 0.5156 GB, free: 15.67 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001097/0.4166, allocations: 0.5403 MB / 0.5161 GB, free: 15.44 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001318/0.4179, allocations: 0.7312 MB / 0.5168 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002104/0.4181, allocations: 105.9 kB / 0.5169 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001516/0.4197, allocations: 0.5984 MB / 0.5175 GB, free: 15.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006631/0.4203, allocations: 481 kB / 0.518 GB, free: 14.87 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007705/0.4211, allocations: 0.5299 MB / 0.5185 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00259/0.4237, allocations: 1.539 MB / 0.52 GB, free: 14.01 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.483e-06/0.4237, allocations: 0 / 0.52 GB, free: 14.01 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4237, allocations: 3.938 kB / 0.52 GB, free: 14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.402e-05/0.4238, allocations: 1.5 kB / 0.52 GB, free: 14 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.003818/0.4276, allocations: 1.39 MB / 0.5214 GB, free: 13.17 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.4277, allocations: 16.95 kB / 0.5214 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002377/0.4279, allocations: 149 kB / 0.5215 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008369/0.4287, allocations: 141.2 kB / 0.5217 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001504/0.4303, allocations: 0.6972 MB / 0.5223 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002569/0.4305, allocations: 172 kB / 0.5225 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002197/0.4308, allocations: 96.8 kB / 0.5226 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002983/0.4338, allocations: 1.411 MB / 0.524 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.354e-05/0.4338, allocations: 6 kB / 0.524 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.4339, allocations: 27.66 kB / 0.524 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000252/0.4342, allocations: 83.72 kB / 0.5241 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003241/0.4374, allocations: 1.521 MB / 0.5256 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007966/0.4454, allocations: 4.427 MB / 0.5299 GB, free: 8.543 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002633/0.4481, allocations: 1.193 MB / 0.5311 GB, free: 7.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001689/0.4498, allocations: 0.7768 MB / 0.5318 GB, free: 7.543 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.605e-05/0.4499, allocations: 16.59 kB / 0.5318 GB, free: 7.535 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.442e-05/0.4499, allocations: 43.66 kB / 0.5319 GB, free: 7.488 MB / 398.1 MB Notification: Performance of pre-optimization done (n=101): time 3.737e-06/0.45, allocations: 0 / 0.5319 GB, free: 7.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=102): time 0.009012/0.459, allocations: 3.873 MB / 0.5357 GB, free: 5.297 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.53e-05/0.4591, allocations: 86.17 kB / 0.5357 GB, free: 5.199 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006707/0.4598, allocations: 401 kB / 0.5361 GB, free: 4.953 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001298/0.4599, allocations: 41.02 kB / 0.5362 GB, free: 4.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003311/0.4603, allocations: 346.5 kB / 0.5365 GB, free: 4.602 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000449/0.4607, allocations: 371.2 kB / 0.5369 GB, free: 4.277 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003471/0.4611, allocations: 165.6 kB / 0.537 GB, free: 4.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002546/0.4613, allocations: 377.9 kB / 0.5374 GB, free: 3.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.4626, allocations: 0.5919 MB / 0.5379 GB, free: 3.539 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001321/0.464, allocations: 0.7431 MB / 0.5387 GB, free: 3.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002562/0.4665, allocations: 1.384 MB / 0.54 GB, free: 2.324 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.4666, allocations: 1.469 kB / 0.54 GB, free: 2.324 MB / 398.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003284/0.4698, allocations: 1.607 MB / 0.5416 GB, free: 1.215 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.4699, allocations: 8 kB / 0.5416 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.4699, allocations: 4 kB / 0.5416 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001781/0.4701, allocations: 41.03 kB / 0.5416 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002694/0.4728, allocations: 0.4953 MB / 0.5421 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008016/0.4808, allocations: 6.686 MB / 0.5487 GB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.4819, allocations: 95.97 kB / 0.5488 GB, free: 9.332 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.4821, allocations: 35.92 kB / 0.5488 GB, free: 9.297 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (104): * Single equations (assignments): 97 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * 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): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007482/0.4828, allocations: 309.5 kB / 0.5491 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002497/0.4831, allocations: 75.5 kB / 0.5492 GB, free: 8.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003361/0.4864, allocations: 1.6 MB / 0.5507 GB, free: 7.281 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.115e-05/0.4865, allocations: 20 kB / 0.5507 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.4865, allocations: 3.984 kB / 0.5507 GB, free: 7.258 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.685e-05/0.4865, allocations: 7.984 kB / 0.5507 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00561/0.4922, allocations: 2.865 MB / 0.5535 GB, free: 4.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.4922, allocations: 3.938 kB / 0.5535 GB, free: 4.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003116/0.4953, allocations: 0.5385 MB / 0.5541 GB, free: 3.746 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001347/0.4955, allocations: 36.84 kB / 0.5541 GB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.4956, allocations: 23.94 kB / 0.5541 GB, free: 3.684 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001481/0.4971, allocations: 1.634 MB / 0.5557 GB, free: 1.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4971, allocations: 4.031 kB / 0.5557 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004951/0.5021, allocations: 2.54 MB / 0.5582 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002894/0.5024, allocations: 140.6 kB / 0.5583 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.5025, allocations: 20 kB / 0.5584 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006633/0.5032, allocations: 75.89 kB / 0.5584 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002478/0.5035, allocations: 84.42 kB / 0.5585 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.511e-05/0.5036, allocations: 23.98 kB / 0.5585 GB, free: 14.95 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004252/0.504, allocations: 279.1 kB / 0.5588 GB, free: 14.68 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.504, allocations: 0 / 0.5588 GB, free: 14.68 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001255/0.5053, allocations: 235.9 kB / 0.559 GB, free: 14.45 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],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 (86): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005271/0.5105, allocations: 3.149 MB / 0.5621 GB, free: 11.23 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004887/0.5155, allocations: 1.837 MB / 0.5639 GB, free: 9.371 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.5155, allocations: 4 kB / 0.5639 GB, free: 9.367 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003505/0.519, allocations: 1.198 MB / 0.5651 GB, free: 8.156 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.5201, allocations: 161.7 kB / 0.5652 GB, free: 7.996 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01658/0.5367, allocations: 9.13 MB / 0.5741 GB, free: 14.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009102/0.5377, allocations: 1.084 MB / 0.5752 GB, free: 13.49 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008556/0.5386, allocations: 269.5 kB / 0.5755 GB, free: 13.22 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005315/0.5391, allocations: 287.3 kB / 0.5757 GB, free: 12.94 MB / 446.1 MB Notification: Performance of SimCode: time 4.41e-07/0.5391, allocations: 0 / 0.5757 GB, free: 12.94 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0652/0.6043, allocations: 17.96 MB / 0.5933 GB, free: 11.17 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/13.83, allocations: 23.7 kB / 0.5933 GB, free: 11.15 MB / 462.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe 2>&1)