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.001079/0.001079, allocations: 112.3 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.001298/0.001298, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.341/1.341, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1843/0.1843, allocations: 38.03 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 71.91 kB / 457.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3397, allocations: 58.05 MB / 0.5036 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.Rectifier): time 0.007341/0.347, allocations: 6.688 MB / 0.5101 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003328/0.3504, allocations: 2.121 MB / 0.5122 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003578/0.3508, allocations: 28.31 kB / 0.5122 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001299/0.3521, allocations: 0.506 MB / 0.5127 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001148/0.3532, allocations: 0.5632 MB / 0.5133 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008108/0.354, allocations: 351.8 kB / 0.5136 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001182/0.3552, allocations: 1.304 MB / 0.5149 GB, free: 64 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009229/0.3562, allocations: 0.7274 MB / 0.5156 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007573/0.3569, allocations: 0.5438 MB / 0.5161 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001122/0.3581, allocations: 0.7379 MB / 0.5169 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000183/0.3583, allocations: 105.6 kB / 0.517 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001196/0.3595, allocations: 0.5951 MB / 0.5175 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005468/0.36, allocations: 477.2 kB / 0.518 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006363/0.3607, allocations: 0.533 MB / 0.5185 GB, free: 14.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001795/0.3625, allocations: 1.539 MB / 0.52 GB, free: 14.08 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.353e-06/0.3625, allocations: 4 kB / 0.52 GB, free: 14.08 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3625, allocations: 6.109 kB / 0.52 GB, free: 14.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.77e-05/0.3625, allocations: 0 / 0.52 GB, free: 14.07 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.002951/0.3655, allocations: 1.386 MB / 0.5214 GB, free: 13.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.3655, allocations: 13.36 kB / 0.5214 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001869/0.3657, allocations: 149.9 kB / 0.5215 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007303/0.3665, allocations: 139.6 kB / 0.5217 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.3679, allocations: 0.7019 MB / 0.5224 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002223/0.3681, allocations: 171.5 kB / 0.5225 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002006/0.3683, allocations: 88.31 kB / 0.5226 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002414/0.3707, allocations: 1.409 MB / 0.524 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.737e-05/0.3708, allocations: 1.125 kB / 0.524 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.3709, allocations: 39.86 kB / 0.524 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002204/0.3711, allocations: 83.58 kB / 0.5241 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002818/0.3739, allocations: 1.523 MB / 0.5256 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007205/0.3811, allocations: 4.432 MB / 0.5299 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002218/0.3834, allocations: 1.192 MB / 0.5311 GB, free: 7.992 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001272/0.3847, allocations: 0.7748 MB / 0.5318 GB, free: 7.605 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.307e-05/0.3847, allocations: 17.42 kB / 0.5319 GB, free: 7.598 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.958e-05/0.3848, allocations: 39.5 kB / 0.5319 GB, free: 7.555 MB / 398.1 MB Notification: Performance of pre-optimization done (n=101): time 2.746e-06/0.3848, allocations: 0 / 0.5319 GB, free: 7.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=102): time 0.007162/0.3919, allocations: 3.873 MB / 0.5357 GB, free: 5.363 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.392, allocations: 91.39 kB / 0.5358 GB, free: 5.262 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004354/0.3925, allocations: 404.3 kB / 0.5361 GB, free: 5.012 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.668e-05/0.3925, allocations: 41.08 kB / 0.5362 GB, free: 4.969 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.3928, allocations: 346.5 kB / 0.5365 GB, free: 4.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002777/0.3931, allocations: 372.3 kB / 0.5369 GB, free: 4.336 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002829/0.3933, allocations: 156.6 kB / 0.537 GB, free: 4.246 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.3935, allocations: 381.4 kB / 0.5374 GB, free: 3.883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001053/0.3946, allocations: 0.6037 MB / 0.538 GB, free: 3.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001106/0.3957, allocations: 0.7346 MB / 0.5387 GB, free: 3.148 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002203/0.3979, allocations: 1.385 MB / 0.54 GB, free: 2.383 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.3979, allocations: 5.156 kB / 0.54 GB, free: 2.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002711/0.4006, allocations: 1.603 MB / 0.5416 GB, free: 1.145 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.4006, allocations: 8 kB / 0.5416 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.4007, allocations: 4 kB / 0.5416 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001421/0.4008, allocations: 40.83 kB / 0.5417 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002585/0.4034, allocations: 0.4955 MB / 0.5421 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006502/0.4099, allocations: 6.69 MB / 0.5487 GB, free: 9.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008391/0.4108, allocations: 87.88 kB / 0.5488 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.391e-05/0.4109, allocations: 32.03 kB / 0.5488 GB, free: 9.234 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.0005271/0.4114, allocations: 317.5 kB / 0.5491 GB, free: 8.914 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001786/0.4116, allocations: 71.52 kB / 0.5492 GB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00273/0.4143, allocations: 1.592 MB / 0.5507 GB, free: 7.223 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.919e-05/0.4144, allocations: 27.98 kB / 0.5507 GB, free: 7.195 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4144, allocations: 8 kB / 0.5508 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.4144, allocations: 3.984 kB / 0.5508 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005021/0.4194, allocations: 2.873 MB / 0.5536 GB, free: 4.215 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.4195, allocations: 7.938 kB / 0.5536 GB, free: 4.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002978/0.4225, allocations: 0.5229 MB / 0.5541 GB, free: 3.684 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001054/0.4226, allocations: 40.84 kB / 0.5541 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.538e-05/0.4227, allocations: 23.98 kB / 0.5541 GB, free: 3.617 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001208/0.4239, allocations: 1.638 MB / 0.5557 GB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.4239, allocations: 0 / 0.5557 GB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004159/0.4281, allocations: 2.544 MB / 0.5582 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003123/0.4284, allocations: 144.6 kB / 0.5584 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001853/0.4286, allocations: 23.98 kB / 0.5584 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007079/0.4293, allocations: 67.89 kB / 0.5585 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002391/0.4296, allocations: 80.48 kB / 0.5585 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.721e-05/0.4296, allocations: 24 kB / 0.5586 GB, free: 14.88 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004106/0.4301, allocations: 279.1 kB / 0.5588 GB, free: 14.61 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4301, allocations: 0 / 0.5588 GB, free: 14.61 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001296/0.4314, allocations: 235.9 kB / 0.559 GB, free: 14.38 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.004569/0.4359, allocations: 3.153 MB / 0.5621 GB, free: 11.16 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004227/0.4402, allocations: 1.833 MB / 0.5639 GB, free: 9.305 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.4402, allocations: 4.188 kB / 0.5639 GB, free: 9.301 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002952/0.4432, allocations: 1.197 MB / 0.5651 GB, free: 8.09 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.4442, allocations: 157.8 kB / 0.5652 GB, free: 7.934 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01458/0.4588, allocations: 9.141 MB / 0.5742 GB, free: 14.54 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007173/0.4595, allocations: 1.08 MB / 0.5752 GB, free: 13.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007196/0.4603, allocations: 269.6 kB / 0.5755 GB, free: 13.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004721/0.4608, allocations: 287.3 kB / 0.5757 GB, free: 12.88 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4608, allocations: 0 / 0.5757 GB, free: 12.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04452/0.5053, allocations: 17.95 MB / 0.5933 GB, free: 11.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/13.04, allocations: 21.39 kB / 0.5933 GB, free: 11.09 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)