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.001231/0.001231, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.00119/0.00119, allocations: 200 kB / 18.01 MB, free: 5.055 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.265/1.265, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1675/0.1675, allocations: 37.98 MB / 309.2 MB, free: 5.938 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.001301/0.001301, allocations: 71.89 kB / 431.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08072/0.08204, allocations: 55.24 MB / 487.1 MB, free: 8.469 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.007378/0.08944, allocations: 6.59 MB / 493.7 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003226/0.0927, allocations: 1.781 MB / 495.5 MB, free: 52 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005266/0.09325, allocations: 23.88 kB / 495.5 MB, free: 28 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008443/0.09411, allocations: 226.3 kB / 495.7 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001032/0.0952, allocations: 381.8 kB / 496.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004453/0.09566, allocations: 223.7 kB / 496.3 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001042/0.09672, allocations: 1.075 MB / 497.4 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005839/0.09731, allocations: 0.5138 MB / 497.9 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006653/0.09799, allocations: 478.3 kB / 498.4 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007705/0.09877, allocations: 498.3 kB / 498.9 MB, free: 12.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001596/0.09894, allocations: 84 kB / 498.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001929/0.09914, allocations: 84 kB / 499 MB, free: 12.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000265/0.09941, allocations: 283.3 kB / 499.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004153/0.09983, allocations: 406.3 kB / 499.7 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008277/0.1007, allocations: 1.036 MB / 0.489 GB, free: 10.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1007, allocations: 4 kB / 0.489 GB, free: 10.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1007, allocations: 0 / 0.489 GB, free: 10.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.1007, allocations: 0 / 0.489 GB, free: 10.77 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.001675/0.1024, allocations: 1.013 MB / 0.49 GB, free: 9.703 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.1024, allocations: 15.89 kB / 0.49 GB, free: 9.688 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.1026, allocations: 72.09 kB / 0.4901 GB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009795/0.1035, allocations: 0.6603 MB / 0.4907 GB, free: 8.918 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.1037, allocations: 113.3 kB / 0.4908 GB, free: 8.797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.654e-05/0.1038, allocations: 59.94 kB / 0.4909 GB, free: 8.738 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.1049, allocations: 0.746 MB / 0.4916 GB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.1049, allocations: 0 / 0.4916 GB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.533e-05/0.105, allocations: 27.98 kB / 0.4916 GB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.105, allocations: 12 kB / 0.4916 GB, free: 7.918 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001068/0.1061, allocations: 0.6089 MB / 0.4922 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002797/0.1089, allocations: 2.463 MB / 0.4946 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008128/0.1097, allocations: 424.9 kB / 0.4951 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003828/0.1101, allocations: 203.1 kB / 0.4952 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.1101, allocations: 8.281 kB / 0.4953 GB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003968/0.1105, allocations: 235.3 kB / 0.4955 GB, free: 3.844 MB / 382.1 MB Notification: Performance of pre-optimization done (n=36): time 1.683e-06/0.1106, allocations: 0 / 0.4955 GB, free: 3.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.002904/0.1135, allocations: 0.8853 MB / 0.4963 GB, free: 2.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.302e-05/0.1135, allocations: 132.5 kB / 0.4965 GB, free: 2.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003759/0.1139, allocations: 405.9 kB / 0.4969 GB, free: 2.363 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/0.114, allocations: 33.7 kB / 0.4969 GB, free: 2.324 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001903/0.1142, allocations: 320 kB / 0.4972 GB, free: 2.008 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.598e-05/0.1143, allocations: 118.4 kB / 0.4973 GB, free: 1.891 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.1144, allocations: 74.14 kB / 0.4974 GB, free: 1.809 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1145, allocations: 362.8 kB / 0.4977 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000281/0.1148, allocations: 128.8 kB / 0.4978 GB, free: 1.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003266/0.1151, allocations: 250 kB / 0.4981 GB, free: 1.031 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001357/0.1165, allocations: 0.645 MB / 0.4987 GB, free: 344 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1165, allocations: 0 / 0.4987 GB, free: 344 kB / 382.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009813/0.1175, allocations: 0.5252 MB / 0.4992 GB, free: 15.8 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.1175, allocations: 11.94 kB / 0.4992 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.1175, allocations: 0 / 0.4992 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004204/0.118, allocations: 156.9 kB / 0.4994 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.1182, allocations: 79.89 kB / 0.4995 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003225/0.1215, allocations: 2.26 MB / 0.5017 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003033/0.1218, allocations: 51.52 kB / 0.5017 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.056e-05/0.1218, allocations: 16 kB / 0.5017 GB, free: 13.09 MB / 398.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.0002928/0.1221, allocations: 245.9 kB / 0.502 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.527e-05/0.1222, allocations: 51.38 kB / 0.502 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001165/0.1234, allocations: 486.6 kB / 0.5025 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.1234, allocations: 7.938 kB / 0.5025 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.1234, allocations: 0 / 0.5025 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.1234, allocations: 7.984 kB / 0.5025 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007076/0.1241, allocations: 0.6745 MB / 0.5032 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.1241, allocations: 7.969 kB / 0.5032 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002214/0.1244, allocations: 51.91 kB / 0.5032 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003865/0.1248, allocations: 140.8 kB / 0.5033 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.792e-05/0.1248, allocations: 8 kB / 0.5034 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002904/0.1277, allocations: 2.248 MB / 0.5056 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1277, allocations: 0 / 0.5056 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001446/0.1292, allocations: 0.7019 MB / 0.5062 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.1293, allocations: 148.5 kB / 0.5064 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.366e-05/0.1294, allocations: 8 kB / 0.5064 GB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.1296, allocations: 23.91 kB / 0.5064 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.32e-05/0.1297, allocations: 39.95 kB / 0.5064 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/0.1298, allocations: 12 kB / 0.5065 GB, free: 7.984 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002772/0.13, allocations: 279.1 kB / 0.5067 GB, free: 7.711 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1301, allocations: 192 / 0.5067 GB, free: 7.711 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005496/0.1306, allocations: 167.4 kB / 0.5069 GB, free: 7.547 MB / 398.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.0001101/0.1307, allocations: 107.1 kB / 0.507 GB, free: 7.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009332/0.1317, allocations: 0.4965 MB / 0.5075 GB, free: 6.922 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1317, allocations: 0 / 0.5075 GB, free: 6.922 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000506/0.1322, allocations: 330.7 kB / 0.5078 GB, free: 6.586 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006245/0.1328, allocations: 169.6 kB / 0.5079 GB, free: 6.418 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.1348, allocations: 1.261 MB / 0.5092 GB, free: 5.121 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000444/0.1353, allocations: 0.9289 MB / 0.5101 GB, free: 4.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002295/0.1355, allocations: 80.64 kB / 0.5102 GB, free: 4.082 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.14e-05/0.1356, allocations: 35.44 kB / 0.5102 GB, free: 4.051 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1356, allocations: 4 kB / 0.5102 GB, free: 4.047 MB / 398.1 MB Notification: Performance of Templates: time 0.0139/0.1495, allocations: 8.451 MB / 0.5185 GB, free: 11.57 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile (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)