Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001496/0.001496, allocations: 173.9 kB / 16.07 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.231/1.231, allocations: 205.4 MB / 222.2 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007395/0.0007394, allocations: 97.48 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1641/0.1641, allocations: 38.07 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003957/0.000396, allocations: 12 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2418, allocations: 56.32 MB / 479.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.006417/0.2482, allocations: 7.513 MB / 487.1 MB, free: 4.141 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003807/0.2521, allocations: 2.407 MB / 489.6 MB, free: 2.434 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006476/0.2528, allocations: 54.28 kB / 489.6 MB, free: 2.41 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004114/0.2532, allocations: 158.5 kB / 489.8 MB, free: 2.332 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001488/0.2547, allocations: 0.6133 MB / 490.4 MB, free: 2.016 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.2557, allocations: 410.7 kB / 490.8 MB, free: 1.836 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001636/0.2574, allocations: 1.569 MB / 492.3 MB, free: 1.262 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001419/0.2588, allocations: 1.008 MB / 493.4 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008171/0.2596, allocations: 0.506 MB / 493.9 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009185/0.2606, allocations: 0.6412 MB / 494.5 MB, free: 324 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001163/0.2607, allocations: 42.59 kB / 494.5 MB, free: 324 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009367/0.2616, allocations: 0.5035 MB / 495 MB, free: 200 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005166/0.2622, allocations: 449.3 kB / 495.5 MB, free: 80 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006436/0.2628, allocations: 0.4963 MB / 496 MB, free: 15.79 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001402/0.2642, allocations: 1.152 MB / 497.1 MB, free: 15.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2642, allocations: 1.5 kB / 497.1 MB, free: 15.55 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2642, allocations: 0 / 497.1 MB, free: 15.55 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.538e-05/0.2643, allocations: 0 / 497.1 MB, free: 15.55 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.002647/0.2669, allocations: 1.368 MB / 498.5 MB, free: 14.49 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.267, allocations: 9 kB / 498.5 MB, free: 14.49 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007305/0.2677, allocations: 161.6 kB / 498.7 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.2688, allocations: 0.6955 MB / 499.4 MB, free: 13.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001696/0.269, allocations: 172.2 kB / 499.5 MB, free: 13.74 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002326/0.2692, allocations: 106.6 kB / 499.6 MB, free: 13.7 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002791/0.272, allocations: 1.552 MB / 0.4894 GB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.542e-05/0.2721, allocations: 6.188 kB / 0.4894 GB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/0.2722, allocations: 33.41 kB / 0.4895 GB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000187/0.2724, allocations: 66.16 kB / 0.4895 GB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002467/0.2749, allocations: 1.189 MB / 0.4907 GB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006351/0.2813, allocations: 4.812 MB / 0.4954 GB, free: 8.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002904/0.2842, allocations: 1.185 MB / 0.4966 GB, free: 7.688 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001248/0.2855, allocations: 0.5919 MB / 0.4971 GB, free: 7.402 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.414e-05/0.2855, allocations: 7.406 kB / 0.4971 GB, free: 7.402 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001437/0.287, allocations: 0.739 MB / 0.4979 GB, free: 6.957 MB / 330.7 MB Notification: Performance of pre-optimization done (n=80): time 3.055e-06/0.287, allocations: 0 / 0.4979 GB, free: 6.957 MB / 330.7 MB Notification: Performance of matching and sorting (n=81): time 0.007055/0.2941, allocations: 3.307 MB / 0.5011 GB, free: 4.375 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.109e-05/0.2942, allocations: 127.5 kB / 0.5012 GB, free: 4.227 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007275/0.2949, allocations: 0.5848 MB / 0.5018 GB, free: 3.633 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.489e-05/0.295, allocations: 53.69 kB / 0.5018 GB, free: 3.574 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003391/0.2953, allocations: 451.1 kB / 0.5023 GB, free: 3.125 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002369/0.2956, allocations: 276.2 kB / 0.5025 GB, free: 2.852 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.154e-05/0.2956, allocations: 16 kB / 0.5025 GB, free: 2.836 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.2958, allocations: 394.7 kB / 0.5029 GB, free: 2.441 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006936/0.2965, allocations: 482 kB / 0.5034 GB, free: 1.973 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008364/0.2974, allocations: 0.7382 MB / 0.5041 GB, free: 1.121 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/0.2989, allocations: 1.246 MB / 0.5053 GB, free: 15.76 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.2989, allocations: 4 kB / 0.5053 GB, free: 15.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002384/0.3013, allocations: 1.584 MB / 0.5069 GB, free: 14.13 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.207e-05/0.3014, allocations: 65.61 kB / 0.5069 GB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001839/0.3033, allocations: 1.326 MB / 0.5082 GB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003796/0.3037, allocations: 121.5 kB / 0.5083 GB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000726/0.3044, allocations: 199.7 kB / 0.5085 GB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002503/0.3069, allocations: 3.079 MB / 0.5115 GB, free: 9.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006868/0.3076, allocations: 71.94 kB / 0.5116 GB, free: 8.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/0.3078, allocations: 75.94 kB / 0.5117 GB, free: 8.891 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006194/0.3084, allocations: 373.4 kB / 0.512 GB, free: 8.516 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.3085, allocations: 83.05 kB / 0.5121 GB, free: 8.434 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002627/0.3112, allocations: 1.321 MB / 0.5134 GB, free: 7.086 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.471e-05/0.3112, allocations: 23.92 kB / 0.5134 GB, free: 7.062 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3112, allocations: 4 kB / 0.5134 GB, free: 7.059 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.3112, allocations: 3.984 kB / 0.5134 GB, free: 7.055 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004041/0.3153, allocations: 2.467 MB / 0.5158 GB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/0.3153, allocations: 7.984 kB / 0.5159 GB, free: 4.488 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006848/0.316, allocations: 147.8 kB / 0.516 GB, free: 4.344 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.951e-05/0.3161, allocations: 32.78 kB / 0.516 GB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.538e-05/0.3162, allocations: 31.95 kB / 0.5161 GB, free: 4.277 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/0.3172, allocations: 1.467 MB / 0.5175 GB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3172, allocations: 4.094 kB / 0.5175 GB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00371/0.321, allocations: 1.993 MB / 0.5194 GB, free: 0.6289 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003937/0.3214, allocations: 251.9 kB / 0.5197 GB, free: 372 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001865/0.3216, allocations: 75.95 kB / 0.5198 GB, free: 296 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007042/0.3223, allocations: 103.9 kB / 0.5199 GB, free: 192 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.3224, allocations: 56.58 kB / 0.5199 GB, free: 136 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.217e-05/0.3225, allocations: 23.98 kB / 0.5199 GB, free: 112 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005089/0.323, allocations: 398.8 kB / 0.5203 GB, free: 15.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.323, allocations: 0 / 0.5203 GB, free: 15.72 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009388/0.3239, allocations: 236 kB / 0.5205 GB, free: 15.49 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002836/0.3242, allocations: 191 kB / 0.5207 GB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002585/0.3268, allocations: 1.647 MB / 0.5223 GB, free: 13.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3269, allocations: 0 / 0.5223 GB, free: 13.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.3281, allocations: 0.6862 MB / 0.523 GB, free: 12.9 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000955/0.3291, allocations: 166.4 kB / 0.5232 GB, free: 12.74 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003935/0.333, allocations: 2.892 MB / 0.526 GB, free: 9.809 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000661/0.3337, allocations: 1.118 MB / 0.5271 GB, free: 8.656 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002818/0.334, allocations: 71.42 kB / 0.5271 GB, free: 8.586 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.334, allocations: 0 / 0.5271 GB, free: 8.586 MB / 362.7 MB Notification: Performance of Templates: time 0.0202/0.3542, allocations: 17.52 MB / 0.5442 GB, free: 7.051 MB / 378.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)