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.001256/0.001256, allocations: 110.5 kB / 17.71 MB, free: 5.383 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.001212/0.001212, allocations: 184.8 kB / 18.64 MB, free: 4.461 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.216/1.216, 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.1701/0.1701, allocations: 37.99 MB / 309.9 MB, free: 5.961 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.00138/0.00138, allocations: 67.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08836/0.08975, allocations: 55.24 MB / 487.7 MB, free: 8.371 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.006996/0.09679, allocations: 6.601 MB / 494.3 MB, free: 1.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002582/0.0994, allocations: 1.788 MB / 496.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003202/0.09974, allocations: 23.88 kB / 496.1 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005737/0.1003, allocations: 222.4 kB / 496.3 MB, free: 15.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007308/0.1011, allocations: 381.9 kB / 496.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000417/0.1015, allocations: 227.6 kB / 496.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009532/0.1025, allocations: 1.079 MB / 498 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005476/0.103, allocations: 0.5061 MB / 498.5 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005739/0.1036, allocations: 470.2 kB / 499 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006222/0.1043, allocations: 486.3 kB / 499.5 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.411e-05/0.1044, allocations: 84 kB / 499.5 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.1045, allocations: 91.94 kB / 499.6 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002457/0.1047, allocations: 275.3 kB / 499.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003652/0.1051, allocations: 406.3 kB / 0.4886 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008704/0.106, allocations: 1.036 MB / 0.4896 GB, free: 10.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.106, allocations: 7.938 kB / 0.4896 GB, free: 10.67 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.106, allocations: 0 / 0.4896 GB, free: 10.67 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.106, allocations: 0 / 0.4896 GB, free: 10.67 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.001743/0.1078, allocations: 1.009 MB / 0.4906 GB, free: 9.609 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.1078, allocations: 11.89 kB / 0.4906 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.108, allocations: 76.09 kB / 0.4907 GB, free: 9.523 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009962/0.109, allocations: 0.6603 MB / 0.4913 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.1091, allocations: 113.2 kB / 0.4914 GB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.1092, allocations: 63.94 kB / 0.4915 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.1103, allocations: 0.7421 MB / 0.4922 GB, free: 7.863 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.1104, allocations: 7.922 kB / 0.4922 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.592e-05/0.1104, allocations: 27.94 kB / 0.4922 GB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.107e-05/0.1105, allocations: 16 kB / 0.4922 GB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001096/0.1116, allocations: 0.605 MB / 0.4928 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002883/0.1145, allocations: 2.463 MB / 0.4952 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008228/0.1153, allocations: 420.9 kB / 0.4956 GB, free: 4.215 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003939/0.1157, allocations: 199.6 kB / 0.4958 GB, free: 4.012 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.1157, allocations: 4.281 kB / 0.4958 GB, free: 4.008 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004058/0.1162, allocations: 247.3 kB / 0.4961 GB, free: 3.742 MB / 382.1 MB Notification: Performance of pre-optimization done (n=36): time 1.984e-06/0.1162, allocations: 0 / 0.4961 GB, free: 3.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.002987/0.1192, allocations: 0.8775 MB / 0.4969 GB, free: 2.836 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.825e-05/0.1192, allocations: 136.5 kB / 0.4971 GB, free: 2.672 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003821/0.1196, allocations: 397.9 kB / 0.4974 GB, free: 2.273 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.721e-05/0.1197, allocations: 33.7 kB / 0.4975 GB, free: 2.234 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.1199, allocations: 316 kB / 0.4978 GB, free: 1.922 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.919e-05/0.12, allocations: 130.3 kB / 0.4979 GB, free: 1.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.1201, allocations: 78.12 kB / 0.498 GB, free: 1.707 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1202, allocations: 358.7 kB / 0.4983 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002806/0.1205, allocations: 124.8 kB / 0.4984 GB, free: 1.227 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003353/0.1209, allocations: 246 kB / 0.4987 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.1223, allocations: 0.6528 MB / 0.4993 GB, free: 244 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.1223, allocations: 4 kB / 0.4993 GB, free: 240 kB / 382.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009865/0.1233, allocations: 0.525 MB / 0.4998 GB, free: 15.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1233, allocations: 4 kB / 0.4998 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1233, allocations: 4 kB / 0.4998 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004269/0.1238, allocations: 153.1 kB / 0.5 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.124, allocations: 75.84 kB / 0.5001 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003206/0.1273, allocations: 2.271 MB / 0.5023 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003015/0.1276, allocations: 47.52 kB / 0.5023 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.872e-05/0.1276, allocations: 20 kB / 0.5023 GB, free: 12.99 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.0002895/0.1279, allocations: 241.7 kB / 0.5026 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.085e-05/0.128, allocations: 55.36 kB / 0.5026 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001185/0.1292, allocations: 474.7 kB / 0.5031 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.1292, allocations: 15.94 kB / 0.5031 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-06/0.1292, allocations: 0 / 0.5031 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1292, allocations: 0 / 0.5031 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006764/0.1299, allocations: 0.6823 MB / 0.5038 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.1299, allocations: 7.938 kB / 0.5038 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002205/0.1301, allocations: 43.92 kB / 0.5038 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003978/0.1305, allocations: 148.8 kB / 0.5039 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.548e-05/0.1306, allocations: 8 kB / 0.504 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002942/0.1335, allocations: 2.252 MB / 0.5062 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.1335, allocations: 8.031 kB / 0.5062 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.135, allocations: 0.6902 MB / 0.5068 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001555/0.1352, allocations: 148.7 kB / 0.507 GB, free: 7.969 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.953e-05/0.1352, allocations: 12 kB / 0.507 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.1355, allocations: 23.86 kB / 0.507 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.1356, allocations: 35.95 kB / 0.507 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.1356, allocations: 11.98 kB / 0.5071 GB, free: 7.887 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002732/0.1359, allocations: 279.2 kB / 0.5073 GB, free: 7.613 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1359, allocations: 3.938 kB / 0.5073 GB, free: 7.609 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005439/0.1364, allocations: 163.4 kB / 0.5075 GB, free: 7.449 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.0001142/0.1366, allocations: 107.2 kB / 0.5076 GB, free: 7.332 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009033/0.1375, allocations: 0.5116 MB / 0.5081 GB, free: 6.809 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1375, allocations: 0 / 0.5081 GB, free: 6.809 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004919/0.138, allocations: 322.5 kB / 0.5084 GB, free: 6.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006201/0.1386, allocations: 166 kB / 0.5085 GB, free: 6.316 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.1405, allocations: 1.29 MB / 0.5098 GB, free: 4.984 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004366/0.141, allocations: 0.9289 MB / 0.5107 GB, free: 4.023 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.479e-05/0.1411, allocations: 35.44 kB / 0.5107 GB, free: 3.992 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1411, allocations: 4 kB / 0.5108 GB, free: 3.988 MB / 398.1 MB Notification: Performance of Templates: time 0.01162/0.1527, allocations: 10.27 MB / 0.5208 GB, free: 9.703 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)