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.0007928/0.000793, allocations: 90.61 kB / 16.65 MB, free: 6.59 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.001119/0.001119, allocations: 182.6 kB / 17.56 MB, free: 6.203 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.476/1.476, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1743/0.1743, allocations: 38.05 MB / 310.1 MB, free: 5.906 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.0005598/0.0005599, allocations: 19.98 kB / 377.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2884, allocations: 56.33 MB / 433.5 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.006007/0.2945, allocations: 6.757 MB / 440.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003243/0.2978, allocations: 1.956 MB / 442.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004691/0.2983, allocations: 35.75 kB / 442.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000679/0.2989, allocations: 198.8 kB / 442.4 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008078/0.2998, allocations: 346.3 kB / 442.8 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003908/0.3002, allocations: 199.8 kB / 443 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009257/0.3011, allocations: 1.422 MB / 444.4 MB, free: 7.879 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004657/0.3016, allocations: 428.9 kB / 444.8 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004684/0.3021, allocations: 370.3 kB / 445.2 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005375/0.3026, allocations: 454.3 kB / 445.6 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.398e-05/0.3027, allocations: 39.94 kB / 445.7 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.503e-05/0.3028, allocations: 36 kB / 445.7 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002058/0.303, allocations: 227.4 kB / 445.9 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002761/0.3033, allocations: 372 kB / 446.3 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006135/0.3039, allocations: 0.9654 MB / 447.2 MB, free: 5.004 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3039, allocations: 0 / 447.2 MB, free: 5.004 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.3039, allocations: 4 kB / 447.2 MB, free: 5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.3039, allocations: 0 / 447.2 MB, free: 5 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.00171/0.3056, allocations: 0.9121 MB / 448.2 MB, free: 4.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.3057, allocations: 16.02 kB / 448.2 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.3058, allocations: 76 kB / 448.2 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.3069, allocations: 0.6254 MB / 448.9 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.307, allocations: 109.3 kB / 449 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.19e-05/0.3071, allocations: 63.94 kB / 449 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001148/0.3083, allocations: 0.7616 MB / 449.8 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.3083, allocations: 4 kB / 449.8 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.779e-05/0.3084, allocations: 20 kB / 449.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.3084, allocations: 20 kB / 449.8 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.3095, allocations: 0.6284 MB / 450.5 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003242/0.3127, allocations: 2.464 MB / 452.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.3138, allocations: 424.9 kB / 453.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004468/0.3142, allocations: 195.1 kB / 453.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/0.3143, allocations: 8.219 kB / 453.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004938/0.3148, allocations: 255.1 kB / 453.8 MB, free: 14.15 MB / 334.1 MB Notification: Performance of pre-optimization done (n=36): time 2.665e-06/0.3148, allocations: 0 / 453.8 MB, free: 14.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=36): time 0.003254/0.3181, allocations: 0.8855 MB / 454.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.3182, allocations: 136.5 kB / 454.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005477/0.3188, allocations: 401.9 kB / 455.2 MB, free: 12.67 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.589e-05/0.3188, allocations: 33.7 kB / 455.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002902/0.3191, allocations: 316 kB / 455.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.3192, allocations: 118.3 kB / 455.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.363e-05/0.3193, allocations: 45.69 kB / 455.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.3195, allocations: 350.8 kB / 456.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000311/0.3198, allocations: 136.8 kB / 456.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003714/0.3202, allocations: 246 kB / 456.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001506/0.3217, allocations: 0.6522 MB / 457.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.3217, allocations: 8 kB / 457.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001043/0.3228, allocations: 0.5171 MB / 457.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.3228, allocations: 8 kB / 457.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.3228, allocations: 4 kB / 457.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004358/0.3233, allocations: 156.8 kB / 457.8 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002832/0.3236, allocations: 75.91 kB / 457.8 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003272/0.3269, allocations: 2.041 MB / 459.9 MB, free: 7.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003529/0.3272, allocations: 59.5 kB / 459.9 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.884e-05/0.3273, allocations: 16 kB / 460 MB, free: 7.652 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,$PRE.chopper.modulator.t1,$PRE.chopper.modulator.t0,chopper.chopper.diode.on,chopper.modulator.t1,chopper.modulator.t0,chopper.modulator.gate) * 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 (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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004003/0.3277, allocations: 245.7 kB / 460.2 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.708e-05/0.3277, allocations: 47.42 kB / 460.2 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001284/0.329, allocations: 486.7 kB / 460.7 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.3291, allocations: 7.984 kB / 460.7 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3291, allocations: 7.938 kB / 460.7 MB, free: 6.855 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-06/0.3291, allocations: 3.938 kB / 460.7 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008497/0.3299, allocations: 0.6784 MB / 461.4 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.33, allocations: 0 / 461.4 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.3302, allocations: 43.92 kB / 461.5 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004309/0.3306, allocations: 152.7 kB / 461.6 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.945e-05/0.3307, allocations: 11.94 kB / 461.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003049/0.3337, allocations: 2.023 MB / 463.6 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3338, allocations: 4.031 kB / 463.7 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001522/0.3353, allocations: 0.698 MB / 464.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001706/0.3355, allocations: 152.5 kB / 464.5 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.136e-05/0.3355, allocations: 4 kB / 464.5 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002286/0.3358, allocations: 23.92 kB / 464.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.3359, allocations: 39.94 kB / 464.6 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.201e-05/0.3359, allocations: 8 kB / 464.6 MB, free: 2.766 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003118/0.3362, allocations: 287.1 kB / 464.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3362, allocations: 0 / 464.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006009/0.3368, allocations: 155.5 kB / 465 MB, free: 2.336 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 (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 {(2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001404/0.337, allocations: 119.2 kB / 465.1 MB, free: 2.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.338, allocations: 498.6 kB / 465.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3381, allocations: 0 / 465.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005816/0.3386, allocations: 347 kB / 465.9 MB, free: 1.359 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007134/0.3394, allocations: 145.8 kB / 466.1 MB, free: 1.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.3418, allocations: 1.582 MB / 467.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005655/0.3424, allocations: 0.9289 MB / 468.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003097/0.3427, allocations: 80.64 kB / 468.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.11e-05/0.3428, allocations: 39.42 kB / 468.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3428, allocations: 0 / 468.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of Templates: time 0.01454/0.3574, allocations: 7.606 MB / 476.3 MB, free: 6.957 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: