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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 87.73 kB / 16.31 MB, free: 6.449 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.001331/0.001331, allocations: 180.6 kB / 17.21 MB, free: 6.32 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.351/1.351, allocations: 205.4 MB / 223.4 MB, free: 5.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3079/0.3079, allocations: 38.05 MB / 309.7 MB, free: 8.957 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.0004894/0.0004895, allocations: 16 kB / 376.5 MB, free: 15.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1033, allocations: 56.33 MB / 432.8 MB, free: 6.711 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.006405/0.1097, allocations: 6.235 MB / 439.1 MB, free: 460 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00299/0.1128, allocations: 1.836 MB / 440.9 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004601/0.1133, allocations: 43.69 kB / 441 MB, free: 14.56 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005265/0.1138, allocations: 143 kB / 441.1 MB, free: 14.42 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009256/0.1147, allocations: 397.9 kB / 441.5 MB, free: 14.03 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007152/0.1155, allocations: 299.5 kB / 441.8 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001299/0.1168, allocations: 1.367 MB / 443.2 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003596/0.1172, allocations: 263.6 kB / 443.4 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005638/0.1177, allocations: 442.3 kB / 443.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006201/0.1184, allocations: 0.5063 MB / 444.3 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.761e-05/0.1185, allocations: 40 kB / 444.4 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.1186, allocations: 40 kB / 444.4 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002837/0.1189, allocations: 295.2 kB / 444.7 MB, free: 10.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.119, allocations: 153.4 kB / 444.9 MB, free: 10.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006142/0.1196, allocations: 0.8065 MB / 445.7 MB, free: 9.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1197, allocations: 4 kB / 445.7 MB, free: 9.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1197, allocations: 0 / 445.7 MB, free: 9.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.1197, allocations: 0 / 445.7 MB, free: 9.82 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.002061/0.1217, allocations: 1.082 MB / 446.8 MB, free: 8.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.1218, allocations: 11.98 kB / 446.8 MB, free: 8.668 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.122, allocations: 83.23 kB / 446.9 MB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.123, allocations: 0.615 MB / 447.5 MB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003997/0.1234, allocations: 346.8 kB / 447.8 MB, free: 7.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.1236, allocations: 59.94 kB / 447.9 MB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001984/0.1255, allocations: 1.101 MB / 449 MB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.1256, allocations: 4 kB / 449 MB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.837e-05/0.1256, allocations: 31.97 kB / 449 MB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.1257, allocations: 16 kB / 449 MB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002401/0.1281, allocations: 1.198 MB / 450.2 MB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004629/0.1327, allocations: 3.248 MB / 453.5 MB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001905/0.1347, allocations: 0.8393 MB / 454.3 MB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.1359, allocations: 0.6001 MB / 454.9 MB, free: 296 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.121e-05/0.136, allocations: 12.38 kB / 454.9 MB, free: 284 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1891/0.3251, allocations: 0.6747 MB / 455.6 MB, free: 51.65 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.346e-06/0.3252, allocations: 3.094 kB / 455.6 MB, free: 51.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003314/0.3285, allocations: 1.551 MB / 457.1 MB, free: 51.61 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.3286, allocations: 144.7 kB / 457.3 MB, free: 51.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/0.3289, allocations: 383.3 kB / 457.7 MB, free: 51.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.188e-05/0.329, allocations: 45.64 kB / 457.7 MB, free: 51.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.3291, allocations: 292.1 kB / 458 MB, free: 51.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.3293, allocations: 163.4 kB / 458.1 MB, free: 51.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.376e-05/0.3293, allocations: 11.59 kB / 458.2 MB, free: 51.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.601e-05/0.3294, allocations: 360.4 kB / 458.5 MB, free: 50.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008654/0.3303, allocations: 496.3 kB / 459 MB, free: 50.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008628/0.3312, allocations: 0.5894 MB / 459.6 MB, free: 50.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008589/0.332, allocations: 0.4935 MB / 460.1 MB, free: 50.63 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3321, allocations: 0 / 460.1 MB, free: 50.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002037/0.3341, allocations: 1.154 MB / 461.2 MB, free: 50.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.771e-05/0.3342, allocations: 58.12 kB / 461.3 MB, free: 50.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3342, allocations: 3.281 kB / 461.3 MB, free: 50.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.3342, allocations: 6.75 kB / 461.3 MB, free: 50.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004913/0.3391, allocations: 1.588 MB / 462.9 MB, free: 50.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006155/0.3453, allocations: 4.835 MB / 467.7 MB, free: 47.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006296/0.3459, allocations: 129 kB / 467.8 MB, free: 47.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.5e-05/0.346, allocations: 40.81 kB / 467.9 MB, free: 47.65 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.000354/0.3464, allocations: 244.9 kB / 468.1 MB, free: 47.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.211e-05/0.3465, allocations: 54.41 kB / 468.2 MB, free: 47.49 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002372/0.3489, allocations: 1.105 MB / 469.3 MB, free: 47.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3489, allocations: 10.39 kB / 469.3 MB, free: 47.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.3489, allocations: 3.344 kB / 469.3 MB, free: 47.42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.3489, allocations: 7.5 kB / 469.3 MB, free: 47.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003247/0.3521, allocations: 2.263 MB / 471.6 MB, free: 46.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.648e-06/0.3522, allocations: 3.062 kB / 471.6 MB, free: 46.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005821/0.358, allocations: 1.834 MB / 473.4 MB, free: 46.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.358, allocations: 3.891 kB / 473.4 MB, free: 46.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.035e-05/0.3581, allocations: 21.84 kB / 473.4 MB, free: 46.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.628e-06/0.3581, allocations: 3.25 kB / 473.4 MB, free: 46.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.3581, allocations: 3.188 kB / 473.4 MB, free: 46.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00329/0.3614, allocations: 1.88 MB / 475.3 MB, free: 45.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.3616, allocations: 198.8 kB / 475.5 MB, free: 45.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.93e-05/0.3617, allocations: 35.66 kB / 475.5 MB, free: 45.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005723/0.3623, allocations: 114.9 kB / 475.7 MB, free: 45.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.3625, allocations: 99.45 kB / 475.8 MB, free: 45.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.472e-05/0.3625, allocations: 20.56 kB / 475.8 MB, free: 45.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002446/0.3628, allocations: 267 kB / 476 MB, free: 45.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3628, allocations: 0 / 476 MB, free: 45.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000652/0.3635, allocations: 186.3 kB / 476.2 MB, free: 45.34 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.0001519/0.3636, allocations: 125.9 kB / 476.3 MB, free: 45.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006386/0.37, allocations: 2.627 MB / 479 MB, free: 44.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.37, allocations: 0 / 479 MB, free: 44.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003092/0.3731, allocations: 1.195 MB / 480.2 MB, free: 44.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007957/0.3739, allocations: 124.5 kB / 480.3 MB, free: 44.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003328/0.3773, allocations: 1.884 MB / 482.2 MB, free: 43.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.3776, allocations: 0.9286 MB / 483.1 MB, free: 42.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005723/0.3782, allocations: 159.2 kB / 483.3 MB, free: 42.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001914/0.3784, allocations: 37.78 kB / 483.3 MB, free: 42.78 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3784, allocations: 1.125 kB / 483.3 MB, free: 42.78 MB / 382.1 MB Notification: Performance of Templates: time 0.01574/0.3942, allocations: 7.79 MB / 491.1 MB, free: 42.29 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile Environment - environmentSimulation: (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 & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1) Environment - environmentSimulation: