Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 110.9 kB / 17.75 MB, free: 5.332 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.001704/0.001704, allocations: 190.6 kB / 18.68 MB, free: 4.406 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.346/1.346, allocations: 205.1 MB / 224.6 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2089/0.2089, allocations: 37.98 MB / 309.9 MB, free: 5.953 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.001575/0.001575, allocations: 67.91 kB / 432.6 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09772/0.0993, allocations: 55.24 MB / 487.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.008378/0.1077, allocations: 6.492 MB / 494.3 MB, free: 1.805 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002615/0.1104, allocations: 1.361 MB / 495.6 MB, free: 448 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004735/0.1109, allocations: 31.81 kB / 495.7 MB, free: 416 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004063/0.1113, allocations: 126.9 kB / 495.8 MB, free: 288 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001181/0.1125, allocations: 421.9 kB / 496.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005597/0.1131, allocations: 239.6 kB / 496.4 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001409/0.1145, allocations: 1.114 MB / 497.6 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005935/0.1151, allocations: 401.8 kB / 498 MB, free: 14.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008787/0.116, allocations: 0.5059 MB / 498.5 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009687/0.117, allocations: 0.5216 MB / 499 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001966/0.1172, allocations: 64 kB / 499 MB, free: 13.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.1174, allocations: 64 kB / 499.1 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003924/0.1178, allocations: 331.2 kB / 499.4 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005259/0.1184, allocations: 414 kB / 499.8 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00093/0.1193, allocations: 0.9148 MB / 0.489 GB, free: 11.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1193, allocations: 0 / 0.489 GB, free: 11.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1193, allocations: 0 / 0.489 GB, free: 11.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.314e-05/0.1194, allocations: 0 / 0.489 GB, free: 11.32 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002199/0.1216, allocations: 1.156 MB / 0.4901 GB, free: 10.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.1216, allocations: 11.89 kB / 0.4902 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.1218, allocations: 84 kB / 0.4902 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.1229, allocations: 0.6117 MB / 0.4908 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.123, allocations: 120.8 kB / 0.4909 GB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.1231, allocations: 64 kB / 0.491 GB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.1247, allocations: 0.8613 MB / 0.4918 GB, free: 8.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.1247, allocations: 4 kB / 0.4919 GB, free: 8.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.663e-05/0.1248, allocations: 24 kB / 0.4919 GB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001164/0.1249, allocations: 41.28 kB / 0.4919 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.1261, allocations: 0.6256 MB / 0.4925 GB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003962/0.1301, allocations: 2.727 MB / 0.4952 GB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001739/0.1319, allocations: 0.9043 MB / 0.4961 GB, free: 3.734 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007492/0.1326, allocations: 322.2 kB / 0.4964 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.1327, allocations: 8.312 kB / 0.4964 GB, free: 3.406 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006881/0.1334, allocations: 350.7 kB / 0.4967 GB, free: 3.043 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 3.036e-06/0.1334, allocations: 0 / 0.4967 GB, free: 3.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.004154/0.1375, allocations: 1.978 MB / 0.4987 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.59e-05/0.1376, allocations: 114.9 kB / 0.4988 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006351/0.1383, allocations: 0.5105 MB / 0.4993 GB, free: 296 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.113e-05/0.1383, allocations: 41.7 kB / 0.4993 GB, free: 248 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003014/0.1387, allocations: 355.7 kB / 0.4996 GB, free: 15.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.1388, allocations: 142.1 kB / 0.4998 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/0.139, allocations: 118.1 kB / 0.4999 GB, free: 15.62 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001923/0.1392, allocations: 370.8 kB / 0.5002 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003804/0.1396, allocations: 225.1 kB / 0.5005 GB, free: 15.03 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004723/0.1401, allocations: 394.2 kB / 0.5008 GB, free: 14.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008902/0.141, allocations: 0.621 MB / 0.5014 GB, free: 13.88 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.141, allocations: 8 kB / 0.5014 GB, free: 13.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001356/0.1423, allocations: 0.8902 MB / 0.5023 GB, free: 12.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.693e-05/0.1424, allocations: 49.69 kB / 0.5024 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.1424, allocations: 4 kB / 0.5024 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003346/0.1428, allocations: 94 kB / 0.5025 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003966/0.1432, allocations: 103.8 kB / 0.5026 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00293/0.1461, allocations: 3.259 MB / 0.5057 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004088/0.1466, allocations: 35.98 kB / 0.5058 GB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.505e-05/0.1467, allocations: 44.06 kB / 0.5058 GB, free: 9.07 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003933/0.1471, allocations: 262.6 kB / 0.5061 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.1472, allocations: 59.25 kB / 0.5061 GB, free: 8.746 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001542/0.1487, allocations: 0.7081 MB / 0.5068 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.1487, allocations: 7.938 kB / 0.5068 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.1487, allocations: 7.984 kB / 0.5068 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002736/0.149, allocations: 168.3 kB / 0.507 GB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.1491, allocations: 31.98 kB / 0.507 GB, free: 7.777 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003683/0.1495, allocations: 39.88 kB / 0.5071 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.525e-05/0.1496, allocations: 35.89 kB / 0.5071 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001947/0.1516, allocations: 0.8599 MB / 0.5079 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002036/0.1536, allocations: 1.138 MB / 0.509 GB, free: 5.668 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005702/0.1542, allocations: 252.4 kB / 0.5093 GB, free: 5.422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004204/0.1546, allocations: 354.8 kB / 0.5096 GB, free: 5.078 MB / 398.1 MB Notification: Performance of Backend: time 4.31e-07/0.1547, allocations: 0 / 0.5096 GB, free: 5.078 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.1563, allocations: 0.7945 MB / 0.5104 GB, free: 4.234 MB / 398.1 MB Notification: Performance of SimCode: time 0.002697/0.159, allocations: 1.879 MB / 0.5122 GB, free: 2.305 MB / 398.1 MB Notification: Performance of Templates: time 0.01527/0.1743, allocations: 7.963 MB / 0.52 GB, free: 10.33 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)