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.001322/0.001322, allocations: 112 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.001272/0.001273, allocations: 197.3 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.418/1.418, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1892/0.1892, allocations: 38.03 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 67.88 kB / 457.6 MB, free: 7.305 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3603/0.3622, allocations: 58.06 MB / 0.5036 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.006796/0.3691, allocations: 6.333 MB / 0.5098 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002464/0.3716, allocations: 1.446 MB / 0.5112 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003726/0.372, allocations: 22.88 kB / 0.5112 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004959/0.3725, allocations: 151.5 kB / 0.5114 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008938/0.3734, allocations: 425.7 kB / 0.5118 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005246/0.374, allocations: 211 kB / 0.512 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001125/0.3751, allocations: 1.119 MB / 0.5131 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004168/0.3755, allocations: 361.9 kB / 0.5134 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006098/0.3762, allocations: 473.6 kB / 0.5139 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007513/0.3769, allocations: 0.5353 MB / 0.5144 GB, free: 0.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001109/0.377, allocations: 74.19 kB / 0.5145 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001567/0.3772, allocations: 68.81 kB / 0.5145 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000308/0.3775, allocations: 312.2 kB / 0.5148 GB, free: 428 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003678/0.3779, allocations: 373.4 kB / 0.5152 GB, free: 208 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001122/0.379, allocations: 0.879 MB / 0.5161 GB, free: 15.87 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.379, allocations: 0 / 0.5161 GB, free: 15.87 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.379, allocations: 0 / 0.5161 GB, free: 15.87 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.3791, allocations: 0.9375 kB / 0.5161 GB, free: 15.87 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.002446/0.3815, allocations: 1.047 MB / 0.5171 GB, free: 15.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.789e-05/0.3816, allocations: 13.17 kB / 0.5171 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001578/0.3818, allocations: 101.1 kB / 0.5172 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.3819, allocations: 78.06 kB / 0.5173 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001232/0.3832, allocations: 0.5905 MB / 0.5178 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001835/0.3834, allocations: 117.5 kB / 0.5179 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.3835, allocations: 56.44 kB / 0.518 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.3849, allocations: 0.7856 MB / 0.5188 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.385, allocations: 1.188 kB / 0.5188 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-05/0.385, allocations: 22 kB / 0.5188 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000126/0.3852, allocations: 35.56 kB / 0.5188 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.3867, allocations: 0.6926 MB / 0.5195 GB, free: 13.97 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.004947/0.3916, allocations: 2.713 MB / 0.5221 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001916/0.3936, allocations: 0.8685 MB / 0.523 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006261/0.3942, allocations: 326 kB / 0.5233 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.3e-05/0.3943, allocations: 9.062 kB / 0.5233 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/0.3943, allocations: 36.97 kB / 0.5234 GB, free: 11.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.284e-06/0.3943, allocations: 0 / 0.5234 GB, free: 11.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.004399/0.3987, allocations: 1.946 MB / 0.5253 GB, free: 10.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.575e-05/0.3988, allocations: 87.25 kB / 0.5253 GB, free: 10.51 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006063/0.3995, allocations: 431 kB / 0.5257 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.472e-05/0.3995, allocations: 30.98 kB / 0.5258 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000276/0.3998, allocations: 323.5 kB / 0.5261 GB, free: 10.01 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.4, allocations: 147.7 kB / 0.5262 GB, free: 9.895 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.4001, allocations: 85.2 kB / 0.5263 GB, free: 9.848 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.4003, allocations: 362.3 kB / 0.5267 GB, free: 9.512 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005161/0.4008, allocations: 239.6 kB / 0.5269 GB, free: 9.441 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006158/0.4015, allocations: 346.2 kB / 0.5272 GB, free: 9.238 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001129/0.4026, allocations: 0.5764 MB / 0.5278 GB, free: 8.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.4026, allocations: 1 kB / 0.5278 GB, free: 8.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001569/0.4042, allocations: 0.7929 MB / 0.5285 GB, free: 8.551 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.4042, allocations: 7.219 kB / 0.5286 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.4042, allocations: 2.812 kB / 0.5286 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002798/0.4045, allocations: 78.22 kB / 0.5286 GB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001467/0.406, allocations: 288 kB / 0.5289 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00687/0.4129, allocations: 6.509 MB / 0.5353 GB, free: 2.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004942/0.4134, allocations: 42.42 kB / 0.5353 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.281e-05/0.4135, allocations: 25.25 kB / 0.5353 GB, free: 2.258 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.0003963/0.4139, allocations: 231.4 kB / 0.5355 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.415e-05/0.414, allocations: 53.91 kB / 0.5356 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001458/0.4154, allocations: 0.738 MB / 0.5363 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.4155, allocations: 7.812 kB / 0.5363 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.4155, allocations: 1.312 kB / 0.5363 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.4155, allocations: 9.484 kB / 0.5363 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002609/0.4181, allocations: 1.489 MB / 0.5378 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4181, allocations: 0 / 0.5378 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001654/0.4198, allocations: 300.5 kB / 0.5381 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002765/0.4201, allocations: 94.11 kB / 0.5382 GB, free: 352 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.589e-05/0.4201, allocations: 11.73 kB / 0.5382 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002738/0.4229, allocations: 3.161 MB / 0.5413 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.4229, allocations: 5.219 kB / 0.5413 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002013/0.4249, allocations: 1.122 MB / 0.5424 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001667/0.4251, allocations: 126.9 kB / 0.5425 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.233e-05/0.4252, allocations: 12.47 kB / 0.5425 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003576/0.4255, allocations: 31.17 kB / 0.5425 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.4257, allocations: 40.8 kB / 0.5426 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.242e-05/0.4257, allocations: 15.56 kB / 0.5426 GB, free: 12.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003513/0.4261, allocations: 294.4 kB / 0.5429 GB, free: 12.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4261, allocations: 0 / 0.5429 GB, free: 12.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007372/0.4268, allocations: 137.2 kB / 0.543 GB, free: 12.07 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.002293/0.4291, allocations: 1.667 MB / 0.5446 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002767/0.4319, allocations: 1 MB / 0.5456 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.4319, allocations: 7.938 kB / 0.5456 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002022/0.4339, allocations: 0.7216 MB / 0.5463 GB, free: 9.773 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000944/0.4349, allocations: 141.4 kB / 0.5464 GB, free: 9.699 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008461/0.4434, allocations: 5.513 MB / 0.5518 GB, free: 5.301 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008963/0.4443, allocations: 0.9487 MB / 0.5528 GB, free: 4.328 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003513/0.4446, allocations: 96.55 kB / 0.5529 GB, free: 4.234 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.445, allocations: 203.4 kB / 0.553 GB, free: 4.039 MB / 414.1 MB Notification: Performance of SimCode: time 6.51e-07/0.445, allocations: 0 / 0.553 GB, free: 4.039 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05215/0.4971, allocations: 12.86 MB / 0.5656 GB, free: 7.363 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.63, allocations: 11.92 kB / 0.5656 GB, free: 7.352 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)