Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.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.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",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.001656/0.001656, allocations: 111.8 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.00185/0.00185, allocations: 196 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.463/1.463, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1846/0.1846, allocations: 38.04 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 71.88 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3148, allocations: 58.05 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.007199/0.322, allocations: 6.933 MB / 0.5104 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003345/0.3254, allocations: 2.027 MB / 0.5124 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005025/0.3259, allocations: 33.34 kB / 0.5124 GB, free: 1.199 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001287/0.3273, allocations: 491.7 kB / 0.5129 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001425/0.3287, allocations: 0.5672 MB / 0.5134 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009728/0.3297, allocations: 390.3 kB / 0.5138 GB, free: 440 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001691/0.3314, allocations: 1.402 MB / 0.5152 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0012/0.3326, allocations: 0.823 MB / 0.516 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001191/0.3338, allocations: 0.6128 MB / 0.5166 GB, free: 15.2 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001442/0.3353, allocations: 0.678 MB / 0.5172 GB, free: 14.94 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003202/0.3356, allocations: 97.47 kB / 0.5173 GB, free: 14.94 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001364/0.337, allocations: 0.5189 MB / 0.5178 GB, free: 14.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007303/0.3377, allocations: 0.4929 MB / 0.5183 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008191/0.3386, allocations: 0.5642 MB / 0.5189 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002117/0.3407, allocations: 1.544 MB / 0.5204 GB, free: 13.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.3407, allocations: 0 / 0.5204 GB, free: 13.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.604e-06/0.3407, allocations: 1.281 kB / 0.5204 GB, free: 13.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.489e-05/0.3407, allocations: 0 / 0.5204 GB, free: 13.73 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.003468/0.3442, allocations: 1.597 MB / 0.5219 GB, free: 12.7 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.3443, allocations: 17.48 kB / 0.522 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002183/0.3445, allocations: 157.8 kB / 0.5221 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008292/0.3453, allocations: 160.6 kB / 0.5223 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001501/0.3468, allocations: 0.739 MB / 0.523 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002251/0.3471, allocations: 179.4 kB / 0.5231 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002985/0.3474, allocations: 101.7 kB / 0.5232 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003932/0.3513, allocations: 1.535 MB / 0.5247 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.422e-05/0.3514, allocations: 6.656 kB / 0.5247 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000125/0.3515, allocations: 38.67 kB / 0.5248 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002069/0.3518, allocations: 66.72 kB / 0.5249 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002835/0.3546, allocations: 1.168 MB / 0.526 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007491/0.3621, allocations: 4.789 MB / 0.5307 GB, free: 7.352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003096/0.3653, allocations: 1.124 MB / 0.5318 GB, free: 6.723 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001445/0.3667, allocations: 0.5565 MB / 0.5323 GB, free: 6.445 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.243e-05/0.3668, allocations: 11.92 kB / 0.5323 GB, free: 6.438 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001658/0.3685, allocations: 0.714 MB / 0.533 GB, free: 5.996 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 3.737e-06/0.3685, allocations: 1.094 kB / 0.533 GB, free: 5.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=81): time 0.008181/0.3767, allocations: 3.223 MB / 0.5362 GB, free: 4.059 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.3768, allocations: 125.1 kB / 0.5363 GB, free: 3.926 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009363/0.3778, allocations: 0.5982 MB / 0.5369 GB, free: 3.566 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000178/0.378, allocations: 51.62 kB / 0.5369 GB, free: 3.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005351/0.3785, allocations: 469.6 kB / 0.5374 GB, free: 3.109 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003741/0.3789, allocations: 280.8 kB / 0.5376 GB, free: 2.871 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004055/0.3793, allocations: 196 kB / 0.5378 GB, free: 2.762 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002315/0.3796, allocations: 388.3 kB / 0.5382 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008779/0.3804, allocations: 486.1 kB / 0.5387 GB, free: 2.164 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.3815, allocations: 0.7482 MB / 0.5394 GB, free: 1.586 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001723/0.3832, allocations: 1.257 MB / 0.5406 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.3832, allocations: 2.312 kB / 0.5406 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00294/0.3862, allocations: 1.588 MB / 0.5422 GB, free: 15.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001116/0.3863, allocations: 68.36 kB / 0.5422 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002086/0.3884, allocations: 1.325 MB / 0.5435 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004358/0.3889, allocations: 121.5 kB / 0.5436 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008069/0.3897, allocations: 203.6 kB / 0.5438 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0033/0.393, allocations: 3.365 MB / 0.5471 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.394, allocations: 67.94 kB / 0.5472 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/0.3942, allocations: 75.94 kB / 0.5473 GB, free: 10.82 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,ac_dc.modulator.t0[3],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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,2,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007376/0.3949, allocations: 385.3 kB / 0.5476 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001931/0.3951, allocations: 83.47 kB / 0.5477 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003071/0.3982, allocations: 1.263 MB / 0.5489 GB, free: 9.051 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.481e-05/0.3983, allocations: 23.97 kB / 0.549 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3983, allocations: 0 / 0.549 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.486e-05/0.3983, allocations: 7.922 kB / 0.549 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005276/0.4036, allocations: 2.424 MB / 0.5513 GB, free: 6.512 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/0.4037, allocations: 0 / 0.5513 GB, free: 6.512 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007756/0.4044, allocations: 147.8 kB / 0.5515 GB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001271/0.4046, allocations: 32.94 kB / 0.5515 GB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.441e-05/0.4047, allocations: 31.97 kB / 0.5515 GB, free: 6.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001395/0.4061, allocations: 1.63 MB / 0.5531 GB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.4061, allocations: 4.031 kB / 0.5531 GB, free: 4.523 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00448/0.4106, allocations: 1.928 MB / 0.555 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005164/0.4111, allocations: 244.5 kB / 0.5553 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002107/0.4114, allocations: 79.94 kB / 0.5553 GB, free: 2.207 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007842/0.4122, allocations: 91.81 kB / 0.5554 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/0.4123, allocations: 56.52 kB / 0.5555 GB, free: 2.059 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.138e-05/0.4124, allocations: 31.98 kB / 0.5555 GB, free: 2.027 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005468/0.413, allocations: 398.8 kB / 0.5559 GB, free: 1.637 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.413, allocations: 0 / 0.5559 GB, free: 1.637 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001201/0.4142, allocations: 240 kB / 0.5561 GB, free: 1.402 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.004914/0.4191, allocations: 2.546 MB / 0.5586 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003227/0.4224, allocations: 1.643 MB / 0.5602 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.4224, allocations: 0.6875 kB / 0.5602 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.4239, allocations: 0.6547 MB / 0.5608 GB, free: 12.45 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.4251, allocations: 178.3 kB / 0.561 GB, free: 12.28 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/0.4405, allocations: 9.238 MB / 0.57 GB, free: 2.621 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.4416, allocations: 1.103 MB / 0.5711 GB, free: 1.488 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008526/0.4425, allocations: 250.5 kB / 0.5713 GB, free: 1.238 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006095/0.4431, allocations: 327.3 kB / 0.5717 GB, free: 0.918 MB / 430.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4432, allocations: 0 / 0.5717 GB, free: 0.918 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05437/0.4975, allocations: 18.83 MB / 0.59 GB, free: 14.26 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.82, allocations: 19.41 kB / 0.5901 GB, free: 14.25 MB / 462.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)