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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001008/0.001008, allocations: 90.3 kB / 16.31 MB, free: 6.453 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.001385/0.001385, allocations: 173.5 kB / 17.2 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.603/1.603, allocations: 205.4 MB / 223.4 MB, free: 5.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3278/0.3278, allocations: 38.07 MB / 309.7 MB, free: 8.801 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005086/0.0005086, allocations: 12 kB / 376.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1175, allocations: 56.33 MB / 432.9 MB, free: 6.609 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.007806/0.1254, allocations: 6.22 MB / 439.2 MB, free: 372 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004184/0.1296, allocations: 1.844 MB / 441 MB, free: 14.51 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005851/0.1303, allocations: 43.69 kB / 441.1 MB, free: 14.47 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005303/0.1308, allocations: 143 kB / 441.2 MB, free: 14.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001027/0.1319, allocations: 409.8 kB / 441.6 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007569/0.1326, allocations: 287.6 kB / 441.9 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001384/0.134, allocations: 1.367 MB / 443.2 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004148/0.1344, allocations: 263.6 kB / 443.5 MB, free: 12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007022/0.1352, allocations: 442.2 kB / 443.9 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007736/0.1359, allocations: 0.5101 MB / 444.4 MB, free: 11.06 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.569e-05/0.136, allocations: 40 kB / 444.5 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.1362, allocations: 40 kB / 444.5 MB, free: 10.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00033/0.1365, allocations: 295.3 kB / 444.8 MB, free: 10.69 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.1367, allocations: 153.3 kB / 445 MB, free: 10.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007498/0.1374, allocations: 0.8027 MB / 445.8 MB, free: 9.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.1375, allocations: 0 / 445.8 MB, free: 9.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1375, allocations: 4 kB / 445.8 MB, free: 9.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.647e-06/0.1375, allocations: 0 / 445.8 MB, free: 9.727 MB / 382.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.002179/0.1397, allocations: 1.079 MB / 446.8 MB, free: 8.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.1397, allocations: 11.98 kB / 446.9 MB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001632/0.1399, allocations: 114.5 kB / 447 MB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001522/0.1401, allocations: 83.09 kB / 447 MB, free: 8.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.1411, allocations: 0.6228 MB / 447.7 MB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004113/0.1416, allocations: 338.9 kB / 448 MB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.1417, allocations: 63.98 kB / 448.1 MB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002089/0.1438, allocations: 1.101 MB / 449.2 MB, free: 6.133 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.1438, allocations: 3.938 kB / 449.2 MB, free: 6.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.148e-05/0.1439, allocations: 24 kB / 449.2 MB, free: 6.105 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/0.1439, allocations: 15.98 kB / 449.2 MB, free: 6.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00263/0.1466, allocations: 1.198 MB / 450.4 MB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004693/0.1513, allocations: 3.264 MB / 453.7 MB, free: 1.527 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002017/0.1533, allocations: 0.8354 MB / 454.5 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001294/0.1546, allocations: 0.5962 MB / 455.1 MB, free: 76 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.169e-05/0.1547, allocations: 4.438 kB / 455.1 MB, free: 72 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2317/0.3864, allocations: 0.6817 MB / 455.8 MB, free: 51.87 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.056e-06/0.3865, allocations: 0 / 455.8 MB, free: 51.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.00347/0.39, allocations: 1.549 MB / 457.3 MB, free: 51.83 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.3901, allocations: 144.6 kB / 457.5 MB, free: 51.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004108/0.3905, allocations: 386 kB / 457.9 MB, free: 51.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.081e-05/0.3906, allocations: 42.8 kB / 457.9 MB, free: 51.54 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002073/0.3908, allocations: 296.4 kB / 458.2 MB, free: 51.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.3909, allocations: 163.4 kB / 458.3 MB, free: 51.31 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.89e-05/0.3909, allocations: 12.41 kB / 458.4 MB, free: 51.31 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.478e-05/0.391, allocations: 361.8 kB / 458.7 MB, free: 51 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009236/0.392, allocations: 491.1 kB / 459.2 MB, free: 51 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009045/0.3929, allocations: 0.5869 MB / 459.8 MB, free: 50.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008677/0.3938, allocations: 0.4956 MB / 460.3 MB, free: 50.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.3938, allocations: 0 / 460.3 MB, free: 50.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002125/0.3959, allocations: 1.158 MB / 461.4 MB, free: 50.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.318e-05/0.396, allocations: 48.94 kB / 461.5 MB, free: 50.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.396, allocations: 4.469 kB / 461.5 MB, free: 50.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.396, allocations: 6.594 kB / 461.5 MB, free: 50.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004858/0.4009, allocations: 1.589 MB / 463.1 MB, free: 50.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006365/0.4073, allocations: 4.838 MB / 467.9 MB, free: 47.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000762/0.4081, allocations: 129.4 kB / 468 MB, free: 47.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.253e-05/0.4082, allocations: 37.03 kB / 468.1 MB, free: 47.84 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: 14 ($whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.modulator.t0) * 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 (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000428/0.4086, allocations: 256.4 kB / 468.3 MB, free: 47.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.602e-05/0.4087, allocations: 50.91 kB / 468.4 MB, free: 47.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002329/0.411, allocations: 1.11 MB / 469.5 MB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.411, allocations: 10.14 kB / 469.5 MB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.411, allocations: 0 / 469.5 MB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.4111, allocations: 6.297 kB / 469.5 MB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003309/0.4144, allocations: 2.254 MB / 471.8 MB, free: 46.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.4144, allocations: 5.281 kB / 471.8 MB, free: 46.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005875/0.4203, allocations: 1.837 MB / 473.6 MB, free: 46.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-05/0.4203, allocations: 2.969 kB / 473.6 MB, free: 46.44 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.743e-05/0.4204, allocations: 21.91 kB / 473.6 MB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/0.4204, allocations: 6.469 kB / 473.6 MB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.4204, allocations: 6.391 kB / 473.6 MB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003446/0.4239, allocations: 1.88 MB / 475.5 MB, free: 45.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002954/0.4242, allocations: 202 kB / 475.7 MB, free: 45.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.4243, allocations: 27.62 kB / 475.7 MB, free: 45.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006027/0.4249, allocations: 120.2 kB / 475.9 MB, free: 45.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/0.4251, allocations: 99.06 kB / 476 MB, free: 45.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.336e-05/0.4252, allocations: 20.36 kB / 476 MB, free: 45.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002494/0.4254, allocations: 263.4 kB / 476.2 MB, free: 45.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4254, allocations: 3.062 kB / 476.2 MB, free: 45.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006405/0.4261, allocations: 178.8 kB / 476.4 MB, free: 45.38 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003571/0.4296, allocations: 2.448 MB / 478.9 MB, free: 44.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006663/0.4363, allocations: 2.624 MB / 481.5 MB, free: 43.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/0.4364, allocations: 0 / 481.5 MB, free: 43.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003198/0.4396, allocations: 1.198 MB / 482.7 MB, free: 43.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009217/0.4405, allocations: 128.3 kB / 482.8 MB, free: 43.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008697/0.4492, allocations: 4.79 MB / 487.6 MB, free: 41.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003996/0.4497, allocations: 0.9296 MB / 488.5 MB, free: 40.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006239/0.4503, allocations: 154.8 kB / 488.7 MB, free: 40.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003095/0.4506, allocations: 195.2 kB / 488.9 MB, free: 40.39 MB / 382.1 MB Notification: Performance of SimCode: time 1.472e-06/0.4506, allocations: 5.047 kB / 488.9 MB, free: 40.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03208/0.4827, allocations: 12.7 MB / 0.4898 GB, free: 37.93 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000158/0.4829, allocations: 213.5 kB / 0.49 GB, free: 37.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.007/2.49, allocations: 4 kB / 0.49 GB, free: 37.7 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1) Environment - environmentSimulation: