Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001602/0.001603, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.00139/0.00139, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.315/1.315, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1742/0.1742, allocations: 38.02 MB / 329.7 MB, free: 8.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 58.97 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0966/0.09784, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.008589/0.1065, allocations: 6.495 MB / 463.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004197/0.1107, allocations: 2.434 MB / 465.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005422/0.1113, allocations: 27.81 kB / 465.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001348/0.1126, allocations: 433.8 kB / 466.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001474/0.1141, allocations: 0.5912 MB / 466.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001192/0.1153, allocations: 0.4912 MB / 467.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002004/0.1174, allocations: 1.945 MB / 469.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001302/0.1187, allocations: 0.8532 MB / 470.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001494/0.1202, allocations: 0.7713 MB / 471 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001503/0.1217, allocations: 0.9624 MB / 472 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003976/0.1221, allocations: 160 kB / 472.1 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001361/0.1235, allocations: 0.6904 MB / 472.8 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008197/0.1243, allocations: 0.6432 MB / 473.4 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001/0.1253, allocations: 0.6808 MB / 474.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002078/0.1274, allocations: 2.006 MB / 476.1 MB, free: 4.719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1274, allocations: 0 / 476.1 MB, free: 4.719 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1274, allocations: 0 / 476.1 MB, free: 4.719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.952e-05/0.1275, allocations: 0 / 476.1 MB, free: 4.719 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.005056/0.1325, allocations: 1.912 MB / 478 MB, free: 2.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.1326, allocations: 15.89 kB / 478.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002752/0.1329, allocations: 160.4 kB / 478.2 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000754/0.1336, allocations: 171.5 kB / 478.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002102/0.1357, allocations: 0.9245 MB / 479.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000599/0.1364, allocations: 0.5025 MB / 479.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002585/0.1366, allocations: 107.8 kB / 479.9 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0042/0.1408, allocations: 2.015 MB / 481.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.879e-05/0.1409, allocations: 0 / 481.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001497/0.1411, allocations: 35.98 kB / 482 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002356/0.1413, allocations: 93.94 kB / 482.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005049/0.1464, allocations: 2.244 MB / 484.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009635/0.156, allocations: 5.683 MB / 490 MB, free: 6.508 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004784/0.1608, allocations: 1.797 MB / 491.8 MB, free: 4.672 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002629/0.1635, allocations: 1.141 MB / 492.9 MB, free: 3.523 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.299e-05/0.1636, allocations: 24.97 kB / 492.9 MB, free: 3.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002948/0.1666, allocations: 1.379 MB / 494.3 MB, free: 2.102 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 5.421e-06/0.1666, allocations: 3.984 kB / 494.3 MB, free: 2.098 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.01413/0.1807, allocations: 5.626 MB / 500 MB, free: 12.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.752e-05/0.1808, allocations: 98.09 kB / 0.4883 GB, free: 12.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006525/0.1815, allocations: 0.4979 MB / 0.4888 GB, free: 11.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001215/0.1816, allocations: 53.69 kB / 0.4889 GB, free: 11.74 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003276/0.182, allocations: 368.8 kB / 0.4892 GB, free: 11.37 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003932/0.1824, allocations: 418 kB / 0.4896 GB, free: 10.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000484/0.1829, allocations: 226.8 kB / 0.4898 GB, free: 10.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002087/0.1831, allocations: 386.8 kB / 0.4902 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002005/0.1851, allocations: 1.025 MB / 0.4912 GB, free: 9.316 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002096/0.1872, allocations: 1.176 MB / 0.4924 GB, free: 8.098 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003996/0.1912, allocations: 2.043 MB / 0.4944 GB, free: 6.012 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.1912, allocations: 0 / 0.4944 GB, free: 6.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01108/0.2023, allocations: 3.895 MB / 0.4982 GB, free: 2.098 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.813e-05/0.2024, allocations: 67.95 kB / 0.4982 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.2025, allocations: 4 kB / 0.4982 GB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.16/0.3625, allocations: 2.064 MB / 0.5002 GB, free: 56.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.3636, allocations: 194.7 kB / 0.5004 GB, free: 56.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02714/0.3908, allocations: 11.31 MB / 0.5115 GB, free: 53.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.3921, allocations: 157.4 kB / 0.5116 GB, free: 53.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/0.3923, allocations: 82.19 kB / 0.5117 GB, free: 53.46 MB / 382.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: 28 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],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,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0005624/0.3929, allocations: 382.2 kB / 0.5121 GB, free: 53.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002096/0.3931, allocations: 81.34 kB / 0.5121 GB, free: 53.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005305/0.3984, allocations: 2.359 MB / 0.5144 GB, free: 52.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.663e-05/0.3985, allocations: 34.59 kB / 0.5145 GB, free: 52.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.3985, allocations: 0 / 0.5145 GB, free: 52.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.424e-05/0.3985, allocations: 9.078 kB / 0.5145 GB, free: 52.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007358/0.4059, allocations: 4.111 MB / 0.5185 GB, free: 50.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.054e-06/0.4059, allocations: 3.969 kB / 0.5185 GB, free: 50.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01082/0.4167, allocations: 2.025 MB / 0.5205 GB, free: 49.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.232e-05/0.4168, allocations: 7.844 kB / 0.5205 GB, free: 49.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000275/0.4171, allocations: 31.34 kB / 0.5205 GB, free: 49.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.346e-06/0.4171, allocations: 7.688 kB / 0.5205 GB, free: 49.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.4171, allocations: 3.938 kB / 0.5205 GB, free: 49.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007348/0.4245, allocations: 3.858 MB / 0.5243 GB, free: 47.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000535/0.425, allocations: 343.1 kB / 0.5246 GB, free: 47.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000226/0.4253, allocations: 83.95 kB / 0.5247 GB, free: 47.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001324/0.4266, allocations: 187.7 kB / 0.5249 GB, free: 47.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003449/0.4269, allocations: 192.6 kB / 0.5251 GB, free: 46.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.862e-05/0.427, allocations: 47.8 kB / 0.5251 GB, free: 46.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003316/0.4274, allocations: 346.8 kB / 0.5254 GB, free: 46.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4274, allocations: 0 / 0.5254 GB, free: 46.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009826/0.4284, allocations: 351.7 kB / 0.5258 GB, free: 46.12 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.007477/0.4359, allocations: 4.534 MB / 0.5302 GB, free: 41.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007048/0.4429, allocations: 3.771 MB / 0.5339 GB, free: 37.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.443, allocations: 0 / 0.5339 GB, free: 37.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005635/0.4486, allocations: 1.934 MB / 0.5358 GB, free: 35.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.4496, allocations: 173.2 kB / 0.5359 GB, free: 35.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03011/0.4798, allocations: 15.82 MB / 0.5514 GB, free: 19.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004943/0.4803, allocations: 1.138 MB / 0.5525 GB, free: 18.51 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009242/0.4812, allocations: 324.9 kB / 0.5528 GB, free: 18.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005517/0.4818, allocations: 347.3 kB / 0.5531 GB, free: 17.86 MB / 382.1 MB Notification: Performance of SimCode: time 6.32e-07/0.4818, allocations: 3.938 kB / 0.5531 GB, free: 17.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05146/0.5333, allocations: 32.21 MB / 0.5846 GB, free: 1.832 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.95, allocations: 11.72 kB / 0.5846 GB, free: 1.824 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_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_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)