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.001347/0.001348, allocations: 114.6 kB / 17.69 MB, free: 5.309 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.001547/0.001547, allocations: 192 kB / 18.63 MB, free: 4.379 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.615/1.615, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1876/0.1876, allocations: 37.98 MB / 309.8 MB, free: 5.973 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.001661/0.001662, allocations: 63.91 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2986, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.006563/0.3052, allocations: 5.971 MB / 438 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002821/0.3081, allocations: 1.594 MB / 439.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003391/0.3085, allocations: 19.88 kB / 439.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000524/0.309, allocations: 146.9 kB / 439.8 MB, free: 11.74 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007687/0.3098, allocations: 362.2 kB / 440.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004949/0.3103, allocations: 311.5 kB / 440.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009533/0.3113, allocations: 1.344 MB / 441.8 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003917/0.3117, allocations: 372.5 kB / 442.1 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004815/0.3122, allocations: 0.5295 MB / 442.7 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005581/0.3128, allocations: 0.5453 MB / 443.2 MB, free: 8.285 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.737e-05/0.3129, allocations: 92 kB / 443.3 MB, free: 8.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001251/0.313, allocations: 92 kB / 443.4 MB, free: 8.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002997/0.3133, allocations: 343.2 kB / 443.7 MB, free: 7.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003738/0.3137, allocations: 410.3 kB / 444.1 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008637/0.3146, allocations: 1.059 MB / 445.2 MB, free: 6.305 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.3146, allocations: 0 / 445.2 MB, free: 6.305 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.3146, allocations: 0 / 445.2 MB, free: 6.305 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.3146, allocations: 4 kB / 445.2 MB, free: 6.301 MB / 318.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.002325/0.317, allocations: 1.193 MB / 446.4 MB, free: 5.051 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.317, allocations: 19.88 kB / 446.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.3172, allocations: 80.12 kB / 446.5 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.3183, allocations: 0.6705 MB / 447.1 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003059/0.3186, allocations: 335.4 kB / 447.5 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.3187, allocations: 63.94 kB / 447.5 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001688/0.3204, allocations: 1.042 MB / 448.6 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.3205, allocations: 0 / 448.6 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.848e-05/0.3205, allocations: 24 kB / 448.6 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.3205, allocations: 12 kB / 448.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002068/0.3226, allocations: 1.089 MB / 449.7 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004432/0.3271, allocations: 3.197 MB / 452.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001979/0.3291, allocations: 0.745 MB / 453.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001276/0.3304, allocations: 0.5338 MB / 454.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.938e-05/0.3304, allocations: 8.438 kB / 454.2 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001398/0.3318, allocations: 0.6186 MB / 454.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.304e-06/0.3318, allocations: 0 / 454.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.003552/0.3354, allocations: 1.374 MB / 456.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.386e-05/0.3355, allocations: 144.5 kB / 456.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004861/0.336, allocations: 393.8 kB / 456.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.309e-05/0.3361, allocations: 37.7 kB / 456.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002688/0.3363, allocations: 292.3 kB / 457 MB, free: 10.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/0.3365, allocations: 165.8 kB / 457.2 MB, free: 9.906 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002426/0.3368, allocations: 118.1 kB / 457.3 MB, free: 9.781 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.337, allocations: 362.8 kB / 457.6 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009807/0.338, allocations: 456.9 kB / 458.1 MB, free: 8.969 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.339, allocations: 0.5523 MB / 458.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001736/0.3408, allocations: 0.8896 MB / 459.5 MB, free: 7.445 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.3408, allocations: 0 / 459.5 MB, free: 7.445 MB / 334.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00218/0.343, allocations: 1.085 MB / 460.6 MB, free: 6.344 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.68e-05/0.343, allocations: 57.62 kB / 460.7 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.343, allocations: 4 kB / 460.7 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.3431, allocations: 7.938 kB / 460.7 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004853/0.3479, allocations: 1.104 MB / 461.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007122/0.3551, allocations: 4.705 MB / 466.5 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006931/0.3558, allocations: 103.4 kB / 466.6 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.341e-05/0.3559, allocations: 43.89 kB / 466.6 MB, free: 40 kB / 334.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 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,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) * 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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000413/0.3563, allocations: 255.4 kB / 466.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.152e-05/0.3564, allocations: 55.36 kB / 466.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/0.3587, allocations: 0.981 MB / 467.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.503e-06/0.3588, allocations: 8 kB / 467.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.3588, allocations: 4 kB / 467.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.3588, allocations: 4 kB / 467.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003725/0.3625, allocations: 2.134 MB / 470.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3625, allocations: 0 / 470.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006072/0.3686, allocations: 1.28 MB / 471.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.927e-06/0.3686, allocations: 4 kB / 471.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.15e-05/0.3687, allocations: 15.98 kB / 471.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.171e-06/0.3687, allocations: 7.938 kB / 471.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.3687, allocations: 8 kB / 471.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003644/0.3724, allocations: 1.697 MB / 473.1 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000362/0.3727, allocations: 204.5 kB / 473.3 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.3729, allocations: 35.97 kB / 473.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006082/0.3735, allocations: 91.88 kB / 473.4 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002218/0.3737, allocations: 91.8 kB / 473.5 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.031e-05/0.3738, allocations: 19.98 kB / 473.5 MB, free: 9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003047/0.3741, allocations: 271.1 kB / 473.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3741, allocations: 0 / 473.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006038/0.3747, allocations: 175.6 kB / 474 MB, free: 8.562 MB / 350.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 (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.0002041/0.3749, allocations: 135 kB / 474.1 MB, free: 8.422 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006753/0.3817, allocations: 2.082 MB / 476.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3817, allocations: 0 / 476.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003285/0.385, allocations: 0.9601 MB / 477.1 MB, free: 5.359 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007581/0.3857, allocations: 133.4 kB / 477.3 MB, free: 5.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003421/0.3892, allocations: 1.583 MB / 478.8 MB, free: 3.598 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005585/0.3897, allocations: 0.9251 MB / 479.8 MB, free: 2.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004673/0.3902, allocations: 156.6 kB / 479.9 MB, free: 2.496 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.3904, allocations: 43.44 kB / 480 MB, free: 2.453 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3904, allocations: 0 / 480 MB, free: 2.453 MB / 350.1 MB Notification: Performance of Templates: time 0.0143/0.4047, allocations: 8.662 MB / 488.6 MB, free: 9.816 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (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 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)