Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009276/0.0009275, allocations: 90.67 kB / 16.3 MB, free: 5.668 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.0009971/0.0009971, allocations: 184.2 kB / 17.2 MB, free: 5.598 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.695/1.695, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1861/0.1861, allocations: 38.05 MB / 309.7 MB, free: 6.121 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.0005292/0.0005295, allocations: 12 kB / 376.5 MB, free: 3.203 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3091, allocations: 56.33 MB / 432.8 MB, free: 18.85 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.004979/0.3141, allocations: 6.122 MB / 438.9 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002163/0.3163, allocations: 1.887 MB / 440.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003055/0.3166, allocations: 31.81 kB / 440.9 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004491/0.3171, allocations: 210.8 kB / 441.1 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005187/0.3176, allocations: 311.1 kB / 441.4 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003596/0.318, allocations: 195.6 kB / 441.6 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004893/0.3185, allocations: 0.5497 MB / 442.1 MB, free: 9.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00035/0.3188, allocations: 333.8 kB / 442.4 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003477/0.3192, allocations: 338.7 kB / 442.8 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003824/0.3196, allocations: 334.8 kB / 443.1 MB, free: 8.531 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.345e-05/0.3196, allocations: 36 kB / 443.1 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.574e-05/0.3197, allocations: 36 kB / 443.2 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001617/0.3199, allocations: 203.5 kB / 443.4 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.32, allocations: 165.3 kB / 443.5 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004631/0.3205, allocations: 0.8142 MB / 444.3 MB, free: 7.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.983e-06/0.3205, allocations: 0 / 444.3 MB, free: 7.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3205, allocations: 0 / 444.3 MB, free: 7.277 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.966e-06/0.3205, allocations: 0 / 444.3 MB, free: 7.277 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.001454/0.322, allocations: 0.912 MB / 445.2 MB, free: 6.316 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.322, allocations: 12.03 kB / 445.3 MB, free: 6.305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.3221, allocations: 83 kB / 445.3 MB, free: 6.223 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008906/0.323, allocations: 0.6087 MB / 445.9 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.3231, allocations: 112.7 kB / 446.1 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.493e-05/0.3232, allocations: 63.94 kB / 446.1 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009916/0.3242, allocations: 0.746 MB / 446.9 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.3243, allocations: 3.938 kB / 446.9 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.351e-05/0.3243, allocations: 31.95 kB / 446.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.3243, allocations: 16 kB / 446.9 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009738/0.3253, allocations: 0.6284 MB / 447.5 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002576/0.3279, allocations: 2.452 MB / 450 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008028/0.3287, allocations: 453.1 kB / 450.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/0.3288, allocations: 8.328 kB / 450.4 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003521/0.3291, allocations: 243.2 kB / 450.7 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of pre-optimization done (n=36): time 1.833e-06/0.3291, allocations: 4 kB / 450.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of matching and sorting (n=36): time 0.002784/0.3319, allocations: 0.8631 MB / 451.5 MB, free: 15.74 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.618e-05/0.332, allocations: 136.5 kB / 451.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004431/0.3325, allocations: 405.9 kB / 452.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.498e-05/0.3325, allocations: 37.64 kB / 452.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002704/0.3328, allocations: 312.1 kB / 452.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.302e-05/0.3329, allocations: 118.3 kB / 452.5 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.153e-05/0.3329, allocations: 12 kB / 452.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002248/0.3332, allocations: 350.8 kB / 452.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002719/0.3334, allocations: 132.8 kB / 453 MB, free: 14.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003381/0.3338, allocations: 238 kB / 453.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003276/0.3341, allocations: 168.6 kB / 453.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3341, allocations: 4 kB / 453.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009819/0.3351, allocations: 0.5113 MB / 453.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.3352, allocations: 8 kB / 453.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3352, allocations: 4 kB / 453.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004826/0.3357, allocations: 152.9 kB / 454.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002992/0.336, allocations: 87.89 kB / 454.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003425/0.3394, allocations: 2.088 MB / 456.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003535/0.3398, allocations: 59.47 kB / 456.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.86e-05/0.3398, allocations: 16 kB / 456.3 MB, free: 10.7 MB / 334.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,chopper.modulator.gate,$PRE.chopper.modulator.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.diode.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004132/0.3402, allocations: 249.7 kB / 456.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.462e-05/0.3403, allocations: 43.44 kB / 456.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.3416, allocations: 482.5 kB / 457.1 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3416, allocations: 8 kB / 457.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.3416, allocations: 0 / 457.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3416, allocations: 0 / 457.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007927/0.3424, allocations: 0.6785 MB / 457.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.3424, allocations: 4 kB / 457.8 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002494/0.3427, allocations: 51.91 kB / 457.8 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004117/0.3431, allocations: 140.8 kB / 458 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.794e-05/0.3431, allocations: 8 kB / 458 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003092/0.3462, allocations: 2.084 MB / 460.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3462, allocations: 4.062 kB / 460.1 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001497/0.3477, allocations: 0.7343 MB / 460.8 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001885/0.3479, allocations: 152.5 kB / 461 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.404e-05/0.348, allocations: 8 kB / 461 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002251/0.3482, allocations: 15.98 kB / 461 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.3484, allocations: 35.94 kB / 461 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.3484, allocations: 12 kB / 461 MB, free: 5.719 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003169/0.3487, allocations: 275.1 kB / 461.3 MB, free: 5.453 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3487, allocations: 4 kB / 461.3 MB, free: 5.449 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000618/0.3494, allocations: 163.5 kB / 461.5 MB, free: 5.289 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001337/0.3495, allocations: 107.1 kB / 461.6 MB, free: 5.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009845/0.3505, allocations: 0.5036 MB / 462.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3505, allocations: 0 / 462.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005402/0.351, allocations: 331.1 kB / 462.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006008/0.3517, allocations: 148 kB / 462.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.354, allocations: 1.515 MB / 464 MB, free: 2.637 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005624/0.3546, allocations: 0.9367 MB / 465 MB, free: 1.672 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003045/0.3549, allocations: 88.62 kB / 465.1 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.208e-05/0.355, allocations: 35.44 kB / 465.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.355, allocations: 0 / 465.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of Templates: time 0.01302/0.368, allocations: 7.401 MB / 472.5 MB, free: 10.18 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1) Environment - environmentSimulation: