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.001113/0.001113, allocations: 116.1 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.001093/0.001093, 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.387/1.387, 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.1756/0.1756, allocations: 38.03 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 63.91 kB / 457.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3201, allocations: 58.07 MB / 0.5036 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.00643/0.3266, allocations: 6.485 MB / 0.5099 GB, free: 3.055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003629/0.3302, allocations: 2.439 MB / 0.5123 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003775/0.3306, allocations: 29.94 kB / 0.5124 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001069/0.3318, allocations: 434 kB / 0.5128 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001241/0.333, allocations: 0.5925 MB / 0.5134 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001003/0.334, allocations: 497 kB / 0.5138 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001865/0.3359, allocations: 1.969 MB / 0.5157 GB, free: 15.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00113/0.337, allocations: 0.8508 MB / 0.5166 GB, free: 15.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001338/0.3384, allocations: 0.7968 MB / 0.5174 GB, free: 15.01 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00153/0.3399, allocations: 0.9623 MB / 0.5183 GB, free: 14.69 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002567/0.3402, allocations: 160.5 kB / 0.5185 GB, free: 14.69 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001107/0.3413, allocations: 0.6498 MB / 0.5191 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007204/0.342, allocations: 0.6468 MB / 0.5197 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008295/0.3429, allocations: 0.6721 MB / 0.5204 GB, free: 13.89 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002754/0.3456, allocations: 2.043 MB / 0.5224 GB, free: 13.19 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3457, allocations: 0 / 0.5224 GB, free: 13.19 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3457, allocations: 0 / 0.5224 GB, free: 13.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.493e-05/0.3457, allocations: 1.844 kB / 0.5224 GB, free: 13.19 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.005442/0.3512, allocations: 1.94 MB / 0.5243 GB, free: 12.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.3512, allocations: 13.64 kB / 0.5243 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002669/0.3515, allocations: 167.2 kB / 0.5244 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000831/0.3523, allocations: 170.6 kB / 0.5246 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002461/0.3548, allocations: 0.973 MB / 0.5256 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006001/0.3554, allocations: 0.5002 MB / 0.526 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002851/0.3557, allocations: 103.4 kB / 0.5261 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004164/0.3599, allocations: 2.011 MB / 0.5281 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.813e-05/0.3599, allocations: 5.031 kB / 0.5281 GB, free: 9.727 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001426/0.3601, allocations: 36.27 kB / 0.5281 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002218/0.3603, allocations: 92.88 kB / 0.5282 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00502/0.3653, allocations: 2.24 MB / 0.5304 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009998/0.3754, allocations: 5.666 MB / 0.536 GB, free: 4.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004793/0.3802, allocations: 1.795 MB / 0.5377 GB, free: 3.703 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002631/0.3828, allocations: 1.154 MB / 0.5388 GB, free: 3.109 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.908e-05/0.3829, allocations: 15.23 kB / 0.5388 GB, free: 3.105 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0029/0.3858, allocations: 1.386 MB / 0.5402 GB, free: 2.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 4.368e-06/0.3859, allocations: 5.375 kB / 0.5402 GB, free: 2.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.01328/0.3992, allocations: 5.643 MB / 0.5457 GB, free: 13.06 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.49e-05/0.3992, allocations: 106 kB / 0.5458 GB, free: 12.94 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005707/0.3998, allocations: 0.4941 MB / 0.5463 GB, free: 12.44 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001188/0.4, allocations: 57.69 kB / 0.5464 GB, free: 12.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002617/0.4002, allocations: 373.5 kB / 0.5467 GB, free: 12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004294/0.4007, allocations: 436.3 kB / 0.5471 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004192/0.4011, allocations: 222.9 kB / 0.5473 GB, free: 11.35 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.4013, allocations: 394.7 kB / 0.5477 GB, free: 10.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002011/0.4033, allocations: 1.025 MB / 0.5487 GB, free: 9.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002084/0.4054, allocations: 1.18 MB / 0.5499 GB, free: 8.711 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003853/0.4092, allocations: 2.043 MB / 0.5519 GB, free: 6.621 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.4092, allocations: 0 / 0.5519 GB, free: 6.621 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01076/0.42, allocations: 3.903 MB / 0.5557 GB, free: 2.699 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.684e-05/0.4201, allocations: 61.67 kB / 0.5557 GB, free: 2.633 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.4201, allocations: 7.984 kB / 0.5557 GB, free: 2.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005726/0.4259, allocations: 2.067 MB / 0.5578 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009346/0.4268, allocations: 187.7 kB / 0.5579 GB, free: 380 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02568/0.4525, allocations: 11.31 MB / 0.569 GB, free: 4.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001537/0.4541, allocations: 159.8 kB / 0.5691 GB, free: 4.754 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001798/0.4543, allocations: 79.88 kB / 0.5692 GB, free: 4.676 MB / 430.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.0007391/0.455, allocations: 377.6 kB / 0.5696 GB, free: 4.297 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002814/0.4553, allocations: 87.47 kB / 0.5697 GB, free: 4.211 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005701/0.461, allocations: 2.365 MB / 0.572 GB, free: 1.836 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.324e-05/0.4611, allocations: 35.98 kB / 0.572 GB, free: 1.801 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.4611, allocations: 0 / 0.572 GB, free: 1.801 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.475e-05/0.4611, allocations: 3.984 kB / 0.572 GB, free: 1.797 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008605/0.4697, allocations: 4.105 MB / 0.576 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.4698, allocations: 0 / 0.576 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01104/0.4808, allocations: 2.017 MB / 0.578 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.077e-05/0.4809, allocations: 11.94 kB / 0.578 GB, free: 11.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002662/0.4811, allocations: 35.97 kB / 0.578 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.195e-05/0.4812, allocations: 7.938 kB / 0.578 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.4812, allocations: 4 kB / 0.578 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008745/0.4899, allocations: 3.859 MB / 0.5818 GB, free: 7.621 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008281/0.4908, allocations: 348.4 kB / 0.5821 GB, free: 7.262 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003378/0.4911, allocations: 91.88 kB / 0.5822 GB, free: 7.172 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001397/0.4925, allocations: 183.7 kB / 0.5824 GB, free: 6.992 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003948/0.4929, allocations: 188.7 kB / 0.5826 GB, free: 6.809 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.4931, allocations: 39.97 kB / 0.5826 GB, free: 6.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004265/0.4935, allocations: 342.9 kB / 0.583 GB, free: 6.434 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4935, allocations: 3.938 kB / 0.583 GB, free: 6.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001306/0.4948, allocations: 367.8 kB / 0.5833 GB, free: 6.07 MB / 446.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.008783/0.5036, allocations: 4.537 MB / 0.5877 GB, free: 1.473 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006869/0.5105, allocations: 3.006 MB / 0.5907 GB, free: 14.44 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.5105, allocations: 0 / 0.5907 GB, free: 14.44 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006338/0.5169, allocations: 1.93 MB / 0.5926 GB, free: 12.52 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001575/0.5185, allocations: 184.1 kB / 0.5927 GB, free: 12.34 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03778/0.5563, allocations: 15.66 MB / 0.608 GB, free: 12.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009522/0.5573, allocations: 1.152 MB / 0.6091 GB, free: 11.22 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001195/0.5585, allocations: 322.7 kB / 0.6095 GB, free: 10.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008122/0.5593, allocations: 343.3 kB / 0.6098 GB, free: 10.57 MB / 478.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5593, allocations: 0 / 0.6098 GB, free: 10.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06525/0.6246, allocations: 32.69 MB / 0.6417 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.48, allocations: 10.17 kB / 0.6417 GB, free: 10.08 MB / 0.4981 GB (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)