Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",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.001555/0.001555, allocations: 113.5 kB / 17.07 MB, free: 5.969 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.001875/0.001875, allocations: 197.3 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.517/1.517, allocations: 222.9 MB / 241.7 MB, free: 15.07 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.03 MB / 329.9 MB, free: 8.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 71.88 kB / 457.6 MB, free: 7.277 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3467, allocations: 58.05 MB / 0.5036 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.006345/0.353, allocations: 5.976 MB / 0.5094 GB, free: 3.414 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002909/0.356, allocations: 1.553 MB / 0.511 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003981/0.3564, allocations: 23.56 kB / 0.511 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005576/0.357, allocations: 142.5 kB / 0.5111 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000883/0.3579, allocations: 357.1 kB / 0.5115 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007138/0.3587, allocations: 318.5 kB / 0.5118 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001557/0.3602, allocations: 1.336 MB / 0.5131 GB, free: 1.277 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005416/0.3608, allocations: 373.2 kB / 0.5134 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009735/0.3618, allocations: 0.5289 MB / 0.5139 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008445/0.3626, allocations: 0.5389 MB / 0.5145 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001509/0.3628, allocations: 90.28 kB / 0.5146 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001988/0.363, allocations: 92 kB / 0.5146 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003659/0.3634, allocations: 345.5 kB / 0.515 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004026/0.3638, allocations: 412.8 kB / 0.5154 GB, free: 324 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001286/0.3651, allocations: 1.061 MB / 0.5164 GB, free: 15.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.3651, allocations: 4 kB / 0.5164 GB, free: 15.92 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3651, allocations: 0 / 0.5164 GB, free: 15.92 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.998e-05/0.3651, allocations: 0 / 0.5164 GB, free: 15.92 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002998/0.3681, allocations: 1.211 MB / 0.5176 GB, free: 15.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.3682, allocations: 14.89 kB / 0.5176 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001691/0.3683, allocations: 111.4 kB / 0.5177 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001838/0.3685, allocations: 82.77 kB / 0.5178 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001361/0.3699, allocations: 0.6734 MB / 0.5184 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004934/0.3704, allocations: 345.4 kB / 0.5188 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.3705, allocations: 56.8 kB / 0.5188 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002462/0.373, allocations: 1.037 MB / 0.5198 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.373, allocations: 4.938 kB / 0.5198 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.652e-05/0.3731, allocations: 30.08 kB / 0.5199 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.3732, allocations: 13.56 kB / 0.5199 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002981/0.3762, allocations: 1.091 MB / 0.521 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005419/0.3816, allocations: 3.199 MB / 0.5241 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002381/0.384, allocations: 0.758 MB / 0.5248 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.3855, allocations: 0.5316 MB / 0.5253 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.833e-05/0.3856, allocations: 4.469 kB / 0.5253 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001689/0.3873, allocations: 0.6303 MB / 0.526 GB, free: 10.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 3.967e-06/0.3873, allocations: 4 kB / 0.526 GB, free: 10.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.004335/0.3916, allocations: 1.37 MB / 0.5273 GB, free: 10.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.3918, allocations: 143.5 kB / 0.5274 GB, free: 10.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005872/0.3924, allocations: 392.4 kB / 0.5278 GB, free: 9.871 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.73e-05/0.3925, allocations: 39.39 kB / 0.5278 GB, free: 9.832 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003216/0.3928, allocations: 294.9 kB / 0.5281 GB, free: 9.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002085/0.393, allocations: 176 kB / 0.5283 GB, free: 9.418 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002812/0.3933, allocations: 122.6 kB / 0.5284 GB, free: 9.344 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002021/0.3935, allocations: 357.9 kB / 0.5288 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.3947, allocations: 455.5 kB / 0.5292 GB, free: 8.777 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.396, allocations: 0.5542 MB / 0.5297 GB, free: 8.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002293/0.3983, allocations: 0.8847 MB / 0.5306 GB, free: 7.906 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/0.3983, allocations: 5.656 kB / 0.5306 GB, free: 7.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002893/0.4012, allocations: 1.095 MB / 0.5317 GB, free: 7.332 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.214e-05/0.4013, allocations: 53.31 kB / 0.5317 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.4013, allocations: 2.375 kB / 0.5317 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.246e-05/0.4014, allocations: 5.5 kB / 0.5317 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00624/0.4076, allocations: 1.111 MB / 0.5328 GB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009092/0.4168, allocations: 4.693 MB / 0.5374 GB, free: 2.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009741/0.4178, allocations: 103.5 kB / 0.5375 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002005/0.418, allocations: 37.98 kB / 0.5375 GB, free: 2.887 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0006851/0.4187, allocations: 249.3 kB / 0.5378 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002001/0.4189, allocations: 55.17 kB / 0.5378 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003167/0.4221, allocations: 0.9884 MB / 0.5388 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.4221, allocations: 4.906 kB / 0.5388 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.4221, allocations: 5.219 kB / 0.5388 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.4221, allocations: 5.141 kB / 0.5388 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004931/0.4271, allocations: 2.131 MB / 0.5409 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.4271, allocations: 1.312 kB / 0.5409 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007462/0.4346, allocations: 1.293 MB / 0.5421 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.542e-05/0.4346, allocations: 3.938 kB / 0.5421 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001688/0.4348, allocations: 17.14 kB / 0.5422 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.017e-05/0.4348, allocations: 3.594 kB / 0.5422 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/0.4348, allocations: 6.438 kB / 0.5422 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004948/0.4398, allocations: 1.699 MB / 0.5438 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004746/0.4403, allocations: 204.7 kB / 0.544 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002008/0.4405, allocations: 27.98 kB / 0.5441 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008556/0.4414, allocations: 91.88 kB / 0.5441 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002725/0.4417, allocations: 99.72 kB / 0.5442 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.098e-05/0.4417, allocations: 23.92 kB / 0.5443 GB, free: 14.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004379/0.4422, allocations: 267.2 kB / 0.5445 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4422, allocations: 4 kB / 0.5445 GB, free: 13.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009869/0.4432, allocations: 175.7 kB / 0.5447 GB, free: 13.62 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.005088/0.4483, allocations: 2.275 MB / 0.5469 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008486/0.4568, allocations: 2.074 MB / 0.5489 GB, free: 9.207 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.4568, allocations: 4.125 kB / 0.5489 GB, free: 9.203 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004119/0.461, allocations: 0.9602 MB / 0.5499 GB, free: 8.242 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.4621, allocations: 141.6 kB / 0.55 GB, free: 8.105 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01388/0.476, allocations: 6.572 MB / 0.5564 GB, free: 1.328 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007323/0.4768, allocations: 0.9328 MB / 0.5573 GB, free: 380 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006054/0.4774, allocations: 160.6 kB / 0.5575 GB, free: 216 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004145/0.4778, allocations: 195.4 kB / 0.5577 GB, free: 20 kB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4778, allocations: 0 / 0.5577 GB, free: 20 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04416/0.522, allocations: 13.67 MB / 0.571 GB, free: 2.543 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/13.56, allocations: 19.8 kB / 0.5711 GB, free: 2.523 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_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_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)